aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-08-16 13:34:23 -0400
committerjim-p <jimp@pfsense.org>2010-08-16 13:34:23 -0400
commitcdb07b3d4b0002b9305e6606de64527cac981f72 (patch)
treee363d318383a9de2850d176f6521bb10c9ae8592 /config/squid
parent4c3b058913af8d9eed1b2602759218e61dba959b (diff)
downloadpfsense-packages-cdb07b3d4b0002b9305e6606de64527cac981f72.tar.gz
pfsense-packages-cdb07b3d4b0002b9305e6606de64527cac981f72.tar.bz2
pfsense-packages-cdb07b3d4b0002b9305e6606de64527cac981f72.zip
Only run chown/chgrp if a file exists.
Diffstat (limited to 'config/squid')
-rw-r--r--config/squid/squid.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 102eef8c..f7b5f7b0 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -65,7 +65,7 @@ function squid_chown_recursive($dir, $user, $group) {
$path = "$dir/$item";
if (is_dir($path))
squid_chown_recursive($path, $user, $group);
- else {
+ elseif (is_file($path)) {
chown($path, $user);
chgrp($path, $group);
}