From: mkanat%bugzilla.org <> Date: Wed, 24 Dec 2008 19:09:46 +0000 (+0000) Subject: Bug 347707: Changing parameters could silently fail because we weren't correctly X-Git-Tag: bugzilla-3.0.7~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efeaf1d3e1342ef07f9e3c8177174e2d45c6a079;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 11ffe4d9ac..68e88814d7 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -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);