From cdb07b3d4b0002b9305e6606de64527cac981f72 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 16 Aug 2010 13:34:23 -0400 Subject: Only run chown/chgrp if a file exists. --- config/squid/squid.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/squid/squid.inc') 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); } -- cgit v1.2.3