Commit 5a1280ad authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

After the checkin of bug 524603, checksetup.pl printed "No such file or…

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.
parent 6f9ef526
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment