summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-05-05 23:52:00 -0500
committerChris Buechler <cmb@pfsense.org>2016-05-05 23:52:00 -0500
commit96860e98c36e507a48e4c06e8c618d5287be2bf7 (patch)
treed367e8f30de4000cf83e1e3144ad05c2f514dd48
parentaeb81f5b2036cd74d3178207354c8a548c3798e7 (diff)
downloadpfsense-96860e98c36e507a48e4c06e8c618d5287be2bf7.zip
pfsense-96860e98c36e507a48e4c06e8c618d5287be2bf7.tar.gz
Only try to chown files that still exist. Ticket #6131
-rw-r--r--src/etc/inc/rrd.inc4
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()) {
OpenPOWER on IntegriCloud