summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-09-13 20:20:21 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-09-13 20:20:21 -0400
commitaf26398c14fe9de4e884e03df7125642ac9cdd82 (patch)
treef3e2aeda99b12dc31a08c2c68706b12f1aa528e1 /IkiWiki/Plugin
parentb94c1ccd552f70b8ecce8f414563b4c6b6385e08 (diff)
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.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/cvs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm
index 1a0bad75f..f6db8bc98 100644
--- a/IkiWiki/Plugin/cvs.pm
+++ b/IkiWiki/Plugin/cvs.pm
@@ -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";