aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3/34/squid.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-05 12:07:59 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-05 17:19:09 -0300
commit8abcb3c52a60519da8a7e391735949e6c235216d (patch)
treecd1adf3ae3e409da742da70e75e0e9a870db11ee /config/squid3/34/squid.inc
parenta3e6c7c09976204363add3bac8c6d000fdc6916c (diff)
downloadpfsense-packages-8abcb3c52a60519da8a7e391735949e6c235216d.tar.gz
pfsense-packages-8abcb3c52a60519da8a7e391735949e6c235216d.tar.bz2
pfsense-packages-8abcb3c52a60519da8a7e391735949e6c235216d.zip
Add a safebelt to avoid changing /usr/local permissions
Diffstat (limited to 'config/squid3/34/squid.inc')
-rwxr-xr-xconfig/squid3/34/squid.inc3
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) ;