From 706e9e1cc5aa9a11732e54110cea115e82294ecd Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Fri, 19 Apr 2002 02:59:00 +0000 Subject: Bug 138064 - False-positive error message in checksetup.pl when checking for "png" in data/webdot/.htaccess. Patch by ddk; 2xr=justdave. --- checksetup.pl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/checksetup.pl b/checksetup.pl index 463382fb5..07b037f61 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; } } -- cgit v1.2.1