From 5a1280adb74f74716974669c072e397752ac0b86 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 15 Dec 2009 01:52:59 +0000 Subject: 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. --- Bugzilla/Install/Filesystem.pm | 6 +++--- 1 file 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); -- cgit v1.2.3-24-g4f1b