]> 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:59 +0000 (01:52 +0000)
committermkanat%bugzilla.org <>
Tue, 15 Dec 2009 01:52:59 +0000 (01:52 +0000)
Bugzilla/Install/Filesystem.pm

index 63cff1e21441b1f9d098b6ab0b9d04d4c9438f0a..2a000acae76bf029d48d43282ccb8fa5c00b2353 100644 (file)
@@ -355,9 +355,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);