]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 347707: Changing parameters could silently fail because we weren't correctly
authormkanat%bugzilla.org <>
Wed, 24 Dec 2008 19:09:46 +0000 (19:09 +0000)
committermkanat%bugzilla.org <>
Wed, 24 Dec 2008 19:09:46 +0000 (19:09 +0000)
 checking the return code from "rename"
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat

Bugzilla/Config.pm

index 11ffe4d9ac9bc922fdd6fdd02b06895d077956ab..68e88814d7fee05def932fe1e82b309304094080 100644 (file)
@@ -272,7 +272,7 @@ sub write_params {
     close $fh;
 
     rename $tmpname, $param_file
-      || die "Can't rename $tmpname to $param_file: $!";
+      or die "Can't rename $tmpname to $param_file: $!";
 
     ChmodDataFile($param_file, 0666);