summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-20 23:50:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-20 23:50:21 +0000
commitc9847bc40b98b7cd6c84b86fa8709c3ad8187d73 (patch)
tree4446928fee9964ee6383a7b06c33799023e7fa30 /etc
parent01ee30effc1a0ed298f0bff90a40e3c4a5166767 (diff)
downloadpfsense-c9847bc40b98b7cd6c84b86fa8709c3ad8187d73.zip
pfsense-c9847bc40b98b7cd6c84b86fa8709c3ad8187d73.tar.gz
Use same exec() command when debugging
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 6218c01..cea6998 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -308,7 +308,7 @@ function mwexec($command) {
if ($g['debug']) {
if (!$_SERVER['REMOTE_ADDR'])
echo "mwexec(): $command\n";
- passthru($command, $retval);
+ exec("$command > /dev/null 2>&1", $oarr, $retval);
} else {
exec("$command > /dev/null 2>&1", $oarr, $retval);
}
OpenPOWER on IntegriCloud