From 337409216460698001d235d4d2b1f148a4dd3602 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 5 May 2015 12:05:31 -0300 Subject: Respect SQUID_[UG]ID and use chmod() --- config/squid3/34/squid.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config') 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"); } } -- cgit v1.2.3