diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ftpserver.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 4c7643ad7..abc0f74c8 100644 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -123,7 +123,8 @@ sub startsf { print STDERR "$cmd\n" if($verbose); print SFWRITE "PING\n"; - my $pong = <SFREAD>; + my $pong; + sysread SFREAD, $pong, 5; if($pong !~ /^PONG/) { logmsg "Failed sockfilt command: $cmd\n"; |