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
parent
b94c1ccd55
commit
af26398c14
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue