diff options
author | jim-p <jimp@pfsense.org> | 2010-08-16 13:34:23 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-08-16 13:34:23 -0400 |
commit | cdb07b3d4b0002b9305e6606de64527cac981f72 (patch) | |
tree | e363d318383a9de2850d176f6521bb10c9ae8592 /config | |
parent | 4c3b058913af8d9eed1b2602759218e61dba959b (diff) | |
download | pfsense-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')
-rw-r--r-- | config/squid/squid.inc | 2 |
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); } |