Detect funny path on CentOS x86

This commit is contained in:
Jamie Cameron
2008-06-10 05:13:42 +00:00
parent 6c52608f9c
commit b286b978c0
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
require './squid-lib.pl';
$access{'cms'} || &error($text{'cach_ecannot'});
$mgr = $config{'cachemgr_path'};
($mgr) = glob($config{'cachemgr_path'});
&same_file($0, $mgr) && &error($text{'cach_esame'});
if (&has_command($mgr)) {
$| = 1;

View File

@@ -3,7 +3,7 @@ squid_path=squid
cache_dir=/var/spool/squid
squid_conf=/etc/squid/squid.conf
pid_file=/var/run/squid.pid
cachemgr_path=/usr/lib/squid/cachemgr.cgi
cachemgr_path=/usr/*/squid/cachemgr.cgi
squid_start=/etc/rc.d/init.d/squid start
squid_stop=/etc/rc.d/init.d/squid stop
calamaris=calamaris