From: gerv%gerv.net <> Date: Wed, 3 Apr 2002 02:23:23 +0000 (+0000) Subject: Bug 120537 (b) - fix previous patch to not complain if there's no .htaccess file... X-Git-Tag: bugzilla-2.16rc1~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e455ff8ab5f0e7e2560b91bf5d7b619dbc971cc;p=thirdparty%2Fbugzilla.git Bug 120537 (b) - fix previous patch to not complain if there's no .htaccess file. Patch by ddkilzer@theracingworld.com; r=justdave, bbaetz. --- diff --git a/defparams.pl b/defparams.pl index f5b7ba098c..eddf509424 100644 --- a/defparams.pl +++ b/defparams.pl @@ -566,11 +566,13 @@ sub check_webdotbase { return "The file path \"$value\" is not a valid executable. Please specify the complete file path to 'dot' if you intend to generate graphs locally."; } # Check .htaccess allows access to generated images - open HTACCESS, "data/webdot/.htaccess"; - if(! grep(/png/,)) { - print "Dependency graph images are not accessible.\nDelete 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.\nDelete data/webdot/.htaccess and re-run checksetup.pl to rectify.\n"; + } + close HTACCESS; } - close HTACCESS; } return ""; }