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:00 -0500 |
commit | 96860e98c36e507a48e4c06e8c618d5287be2bf7 (patch) | |
tree | d367e8f30de4000cf83e1e3144ad05c2f514dd48 | |
parent | aeb81f5b2036cd74d3178207354c8a548c3798e7 (diff) | |
download | pfsense-96860e98c36e507a48e4c06e8c618d5287be2bf7.zip pfsense-96860e98c36e507a48e4c06e8c618d5287be2bf7.tar.gz |
Only try to chown files that still exist. Ticket #6131
-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()) { |