diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-05-05 23:52:00 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-05-05 23:52:20 -0500 |
commit | 8e23a63075068f972c993f67900c258afddd6f9e (patch) | |
tree | d8fb4e6b7a0211f9415a4b7f72f5bba017248c35 /src/etc | |
parent | 176a139bc981332602b62ca2278260bf7fc4ce55 (diff) | |
download | pfsense-8e23a63075068f972c993f67900c258afddd6f9e.zip pfsense-8e23a63075068f972c993f67900c258afddd6f9e.tar.gz |
Only try to chown files that still exist. Ticket #6131
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/rrd.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/etc/inc/rrd.inc b/src/etc/inc/rrd.inc index 6010c0e..7f85fe8 100644 --- a/src/etc/inc/rrd.inc +++ b/src/etc/inc/rrd.inc @@ -1070,7 +1070,9 @@ EOD; $databases = glob("{$rrddbpath}/*.rrd"); foreach ($databases as $database) { - chown($database, "nobody"); + if (file_exists($database)) { + chown($database, "nobody"); + } } if (platform_booting()) { |