diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-18 19:56:55 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-18 19:56:55 +0000 |
commit | 213c1f6002e5caf5bdae24306354f5070216a1f1 (patch) | |
tree | 3d4b271fd0686cc741b0cc9146c054aea17af083 | |
parent | 16125d1ce14a05260f33c1b8be7715d873ed62a2 (diff) | |
download | pfsense-213c1f6002e5caf5bdae24306354f5070216a1f1.zip pfsense-213c1f6002e5caf5bdae24306354f5070216a1f1.tar.gz |
Correctly check for running pftpx occurance
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index fae5b0b..ee3d730 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -627,13 +627,13 @@ function filter_nat_rules_generate() { $extaddr = alias_expand($extaddr); /* - * If FTP Proxy Helper is enbabled and the + * If FTP Proxy Helper is enabled and the * operator has requested a port forward to * a ftp server then launch a helper */ if($target <> "") { if($extport[0] == "21" and !isset($config['system']['disableftpproxy'])) { - $helpers = exec("ps ax | grep /usr/local/sbin/pftpx | grep -v grep | sed \"s/ */ /g\" | grep {$target} | cut -f2 -d\" \""); + $helpers = exec("ps awux | grep pftpx | grep -v grep | grep \"-f {$target}\" "); if(!$helpers) { $external_address = $rule['external-address']; if($external_address == "") |