diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 12:07:59 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 17:19:09 -0300 |
commit | 8abcb3c52a60519da8a7e391735949e6c235216d (patch) | |
tree | cd1adf3ae3e409da742da70e75e0e9a870db11ee | |
parent | a3e6c7c09976204363add3bac8c6d000fdc6916c (diff) | |
download | pfsense-packages-8abcb3c52a60519da8a7e391735949e6c235216d.tar.gz pfsense-packages-8abcb3c52a60519da8a7e391735949e6c235216d.tar.bz2 pfsense-packages-8abcb3c52a60519da8a7e391735949e6c235216d.zip |
Add a safebelt to avoid changing /usr/local permissions
-rwxr-xr-x | config/squid3/34/squid.inc | 3 |
1 files changed, 3 insertions, 0 deletions
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) ; |