From: mkanat%bugzilla.org <> Date: Wed, 24 Dec 2008 19:08:20 +0000 (+0000) Subject: Bug 347707: Changing parameters could silently fail because we weren't correctly... X-Git-Tag: bugzilla-3.3.1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=648127eb7ee4ab3623af6c4d9770ea84aae2aca2;p=thirdparty%2Fbugzilla.git Bug 347707: Changing parameters could silently fail because we weren't correctly checking the return code from "rename" Patch By Max Kanat-Alexander r=justdave, a=mkanat --- diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index 3666861f0b..14f10bed98 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -287,7 +287,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);