From 8abcb3c52a60519da8a7e391735949e6c235216d Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 5 May 2015 12:07:59 -0300 Subject: Add a safebelt to avoid changing /usr/local permissions --- config/squid3/34/squid.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config/squid3') diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index 25d85361..104c96cc 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -84,6 +84,9 @@ function squid_get_real_interface_address($iface) { } function squid_chown_recursive($dir, $user, $group) { + if ($dir == '/usr/local') + return; + chown($dir, $user); chgrp($dir, $group); $handle = opendir($dir) ; -- cgit v1.2.3