summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-20 08:26:39 -0400
committerjim-p <jimp@pfsense.org>2010-07-20 08:26:39 -0400
commit496dcc199b5435cbd941b4ba89c9ded875f914fd (patch)
tree22f06f4b4cdc8692e1254a4a44495bc3a2cdc2f1 /usr/local
parent5709072a7e46165ae9d774c5c9c5818a89231d7e (diff)
downloadpfsense-496dcc199b5435cbd941b4ba89c9ded875f914fd.zip
pfsense-496dcc199b5435cbd941b4ba89c9ded875f914fd.tar.gz
Replace this exec to find with a glob(). Fixes #751.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/status_rrd_graph.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index d6e9736..c0d8814 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -28,7 +28,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
/*
- pfSense_BUILDER_BINARIES: /usr/bin/find
pfSense_MODULE: system
*/
@@ -50,8 +49,7 @@ if(! isset($config['rrd']['enable'])) {
}
$rrddbpath = "/var/db/rrd/";
-/* XXX: (billm) do we have an exec() type function that does this type of thing? */
-exec("cd $rrddbpath;/usr/bin/find -name *.rrd", $databases);
+$databases = glob("{$rrddbpath}*.rrd");
if ($_GET['cat']) {
$curcat = $_GET['cat'];
OpenPOWER on IntegriCloud