From: mkanat%bugzilla.org <> Date: Tue, 15 Dec 2009 01:52:16 +0000 (+0000) Subject: After the checkin of bug 524603, checksetup.pl printed "No such file or directory... X-Git-Tag: bugzilla-3.4.5~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c51d234b317c26bf53d17b9b2acd1715cf64beb9;p=thirdparty%2Fbugzilla.git 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. --- diff --git a/Bugzilla/Install/Filesystem.pm b/Bugzilla/Install/Filesystem.pm index 7ea36b2482..5494cec2c1 100644 --- a/Bugzilla/Install/Filesystem.pm +++ b/Bugzilla/Install/Filesystem.pm @@ -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);