summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-12-15 02:52:59 +0100
committermkanat%bugzilla.org <>2009-12-15 02:52:59 +0100
commit5a1280adb74f74716974669c072e397752ac0b86 (patch)
tree1e0763a7cae38adf0f356939e3dffb71ed3508a1
parent6f9ef526d76a1586aa3f194a13c62f018a47b1e3 (diff)
downloadbugzilla-5a1280adb74f74716974669c072e397752ac0b86.tar.gz
bugzilla-5a1280adb74f74716974669c072e397752ac0b86.tar.xz
After the checkin of bug 524603, checksetup.pl printed "No such file or directory at Bugzilla/Install/Filesystem.pm line 465" the first time the new code was run. This fixes the warning.
-rw-r--r--Bugzilla/Install/Filesystem.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Install/Filesystem.pm b/Bugzilla/Install/Filesystem.pm
index 63cff1e21..2a000acae 100644
--- a/Bugzilla/Install/Filesystem.pm
+++ b/Bugzilla/Install/Filesystem.pm
@@ -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);