From: gerv%gerv.net <> Date: Fri, 19 Apr 2002 02:59:00 +0000 (+0000) Subject: Bug 138064 - False-positive error message in checksetup.pl when checking for "png... X-Git-Tag: bugzilla-2.16rc1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=706e9e1cc5aa9a11732e54110cea115e82294ecd;p=thirdparty%2Fbugzilla.git Bug 138064 - False-positive error message in checksetup.pl when checking for "png" in data/webdot/.htaccess. Patch by ddk; 2xr=justdave. --- diff --git a/checksetup.pl b/checksetup.pl index 463382fb5b..07b037f61f 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -985,12 +985,14 @@ if(-e "data/params") { } # Check .htaccess allows access to generated images - open HTACCESS, "data/webdot/.htaccess"; - if(! grep(/png/,)) { - print "Dependency graph images are not accessible.\n"; - print "Delete data/webdot/.htaccess and re-run checksetup.pl to rectify.\n"; + if(-e "data/webdot/.htaccess") { + open HTACCESS, "data/webdot/.htaccess"; + if(! grep(/png/,)) { + print "Dependency graph images are not accessible.\n"; + print "Delete data/webdot/.htaccess and re-run checksetup.pl to rectify.\n"; + } + close HTACCESS; } - close HTACCESS; } }