avoid tempfile warning

Allow tempfile to open the file, so it doesn't warn about possible
insecurity. This probably fixes a real, but unlikely security hole too.
master
Joey Hess 2009-09-13 20:20:21 -04:00
parent b94c1ccd55
commit af26398c14
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ sub rcs_recentchanges($) {
eval q{use File::ReadBackwards};
error($@) if $@;
my (undef, $tmpfile) = tempfile(OPEN=>0);
my ($tmphandle, $tmpfile) = tempfile();
system("env TZ=UTC cvsps -q --cvs-direct -z 30 -x >$tmpfile");
if ($? == -1) {
error "couldn't run cvsps: $!\n";