summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-07-13 07:35:04 +0200
committerlpsolit%gmail.com <>2005-07-13 07:35:04 +0200
commit6faf47b4e7dffd80f61bc731245d7bbafb74b9af (patch)
treee4af707bc3c0a3fd52d7990bb3a28f5f681332ff
parent9b192788438ea3d72c128971493e4d26b2dca83d (diff)
downloadbugzilla-6faf47b4e7dffd80f61bc731245d7bbafb74b9af.tar.gz
bugzilla-6faf47b4e7dffd80f61bc731245d7bbafb74b9af.tar.xz
Bug 300379: GenerateVersionTable's rename may fail silently - Patch by byron jones (glob) <bugzilla@glob.com.au> r=LpSolit a=justdave
-rw-r--r--globals.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index 517ed1827..bc9aa99ef 100644
--- a/globals.pl
+++ b/globals.pl
@@ -310,7 +310,8 @@ sub GenerateVersionTable {
print $fh "1;\n";
close $fh;
- rename $tmpname, "$datadir/versioncache" || die "Can't rename $tmpname to versioncache";
+ rename ($tmpname, "$datadir/versioncache")
+ || die "Can't rename $tmpname to versioncache";
ChmodDataFile("$datadir/versioncache", 0666);
}