diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-20 23:50:21 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-20 23:50:21 +0000 |
commit | c9847bc40b98b7cd6c84b86fa8709c3ad8187d73 (patch) | |
tree | 4446928fee9964ee6383a7b06c33799023e7fa30 /etc/inc | |
parent | 01ee30effc1a0ed298f0bff90a40e3c4a5166767 (diff) | |
download | pfsense-c9847bc40b98b7cd6c84b86fa8709c3ad8187d73.zip pfsense-c9847bc40b98b7cd6c84b86fa8709c3ad8187d73.tar.gz |
Use same exec() command when debugging
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/util.inc | 2 |
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); } |