diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 12:05:31 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 17:19:09 -0300 |
commit | 337409216460698001d235d4d2b1f148a4dd3602 (patch) | |
tree | 46a20c0416351b2e10907aec127f5f7a1b257b78 /config/squid3/34 | |
parent | 7c070039cf7717973d79414047e0fc8e9b343c23 (diff) | |
download | pfsense-packages-337409216460698001d235d4d2b1f148a4dd3602.tar.gz pfsense-packages-337409216460698001d235d4d2b1f148a4dd3602.tar.bz2 pfsense-packages-337409216460698001d235d4d2b1f148a4dd3602.zip |
Respect SQUID_[UG]ID and use chmod()
Diffstat (limited to 'config/squid3/34')
-rwxr-xr-x | config/squid3/34/squid.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index 11d445d4..e65a3508 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -148,9 +148,9 @@ function squid_dash_z($cache_action='none') { } if (file_exists("/var/squid/cache/swap.state")) { - chown("/var/squid/cache/swap.state", "proxy"); - chgrp("/var/squid/cache/swap.state", "proxy"); - exec("chmod a+rw /var/squid/cache/swap.state"); + chown("/var/squid/cache/swap.state", SQUID_UID); + chgrp("/var/squid/cache/swap.state", SQUID_GID); + chmod("/var/squid/cache/swap.state", "a+rw"); } } |