From cb70cb26832f8eb171ed2e6ea7aa9ecb429f051c Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" Date: Thu, 18 Apr 2002 19:59:00 +0000 Subject: [PATCH] Bug 138064 - False-positive error message in checksetup.pl when checking for "png" in data/webdot/.htaccess. Patch by ddk; 2xr=justdave. --- webtools/bugzilla/checksetup.pl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/webtools/bugzilla/checksetup.pl b/webtools/bugzilla/checksetup.pl index 463382fb5bb..07b037f61f1 100755 --- a/webtools/bugzilla/checksetup.pl +++ b/webtools/bugzilla/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; } }