diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-23 22:08:20 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-23 22:08:20 +0000 |
commit | 2f7487d363eb515d5f5643e42c12009ec24b899d (patch) | |
tree | 295515c61c6a701a441c68c78f4ae95f96ca60d7 /usr | |
parent | 855d186191ab74ee7d43c115bcae3bdd20ab19af (diff) | |
download | pfsense-2f7487d363eb515d5f5643e42c12009ec24b899d.zip pfsense-2f7487d363eb515d5f5643e42c12009ec24b899d.tar.gz |
* Use full path to grep and awk
* Test for p and not -p
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat_1to1_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_1to1_edit.php b/usr/local/www/firewall_nat_1to1_edit.php index c814d50..155196a 100755 --- a/usr/local/www/firewall_nat_1to1_edit.php +++ b/usr/local/www/firewall_nat_1to1_edit.php @@ -122,7 +122,7 @@ if ($_POST) { if($a_1to1[$id]['useftphelper']) { if($a_1to1[$id]['external'] != $_POST['external'] or $a_1to1[$id]['internal'] != $_POST['internal'] or !$_POST['useftphelper']) { - $helpers = `/bin/ps awux | grep "p 21 -R {$a_1to1[$id]['internal']} -b {$a_1to1[$id]['external']}" | grep -v grep | awk '{ print $2 }'`; + $helpers = `/bin/ps awux | /usr/bin/grep "p 21 -R {$a_1to1[$id]['internal']} -b {$a_1to1[$id]['external']}" | /usr/bin/grep -v grep | /usr/bin/awk '{ print $2 }'`; if($helpers) exec("kill $helpers"); } |