diff options
author | gerv%gerv.net <> | 2002-04-19 04:59:00 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-04-19 04:59:00 +0200 |
commit | 706e9e1cc5aa9a11732e54110cea115e82294ecd (patch) | |
tree | 57d87cd14831f9f88b46f24c16d1df2e19921853 /checksetup.pl | |
parent | 509faa041d0a8da87d24a78d8ce1d456618ee248 (diff) | |
download | bugzilla-706e9e1cc5aa9a11732e54110cea115e82294ecd.tar.gz bugzilla-706e9e1cc5aa9a11732e54110cea115e82294ecd.tar.xz |
Bug 138064 - False-positive error message in checksetup.pl when checking for "png" in data/webdot/.htaccess. Patch by ddk; 2xr=justdave.
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 12 |
1 files 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/,<HTACCESS>)) { - 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/,<HTACCESS>)) { + 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; } } |