]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
After the checkin of bug 524603, checksetup.pl printed "No such file or directory...
authormkanat%bugzilla.org <>
Tue, 15 Dec 2009 01:52:16 +0000 (01:52 +0000)
committermkanat%bugzilla.org <>
Tue, 15 Dec 2009 01:52:16 +0000 (01:52 +0000)
Bugzilla/Install/Filesystem.pm

index 7ea36b24824aa6388a7289d926aa968152756f41..5494cec2c1194866e3efea91d23f3dadab63b0fd 100644 (file)
@@ -351,9 +351,9 @@ sub update_filesystem {
 
     # Move the testfile if we can't write to it, so that we can re-create
     # it with the correct permissions below.
-    if (!-w "$datadir/mailer.testfile") {
-        _rename_file("$datadir/mailer.testfile", 
-                     "$datadir/mailer.testfile.old");
+    my $testfile = "$datadir/mailer.testfile";
+    if (-e $testfile and !-w $testfile) {
+        _rename_file($testfile, "$testfile.old");
     }
 
     _create_files(%files);