aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ftpserver.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 0140f723f..7c1b0aec6 100644
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -175,8 +175,14 @@ sub SIZE_command {
my $size = $data[0];
if($size) {
- print "213 $size\r\n";
- logmsg "SIZE $testno returned $size\n";
+ if($size > -1) {
+ print "213 $size\r\n";
+ logmsg "SIZE $testno returned $size\n";
+ }
+ else {
+ print "550 $testno: No such file or directory.\r\n";
+ logmsg "SIZE $testno: no such file\n";
+ }
}
else {
$size=0;