diff options
Diffstat (limited to 'tests/ftpserver.pl')
-rwxr-xr-x | tests/ftpserver.pl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index d401be24c..ac02722e9 100755 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -68,6 +68,10 @@ use serverhelp qw( datasockf_logfilename ); +use sshhelp qw( + exe_ext + ); + #********************************************************************** # global vars... # @@ -411,7 +415,7 @@ sub sysread_or_die { } sub startsf { - my $mainsockfcmd = "./server/sockfilt " . + my $mainsockfcmd = "./server/sockfilt".exe_ext('SRV')." " . "--ipv$ipvnum --port $port " . "--pidfile \"$mainsockf_pidfile\" " . "--logfile \"$mainsockf_logfile\""; @@ -2401,7 +2405,7 @@ sub PASV_ftp { logmsg "DATA sockfilt for passive data channel starting...\n"; # We fire up a new sockfilt to do the data transfer for us. - my $datasockfcmd = "./server/sockfilt " . + my $datasockfcmd = "./server/sockfilt".exe_ext('SRV')." " . "--ipv$ipvnum $bindonly --port 0 " . "--pidfile \"$datasockf_pidfile\" " . "--logfile \"$datasockf_logfile\""; @@ -2620,7 +2624,7 @@ sub PORT_ftp { logmsg "DATA sockfilt for active data channel starting...\n"; # We fire up a new sockfilt to do the data transfer for us. - my $datasockfcmd = "./server/sockfilt " . + my $datasockfcmd = "./server/sockfilt".exe_ext('SRV')." " . "--ipv$ipvnum --connect $port --addr \"$addr\" " . "--pidfile \"$datasockf_pidfile\" " . "--logfile \"$datasockf_logfile\""; |