From: Daniel Stenberg Date: Wed, 26 Feb 2003 17:05:36 +0000 (+0000) Subject: support -1 to completely disable the SIZE command X-Git-Tag: curl-7_10_4~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de96719a45543987767eb2d833707dac864161c9;p=curl support -1 to completely disable the SIZE command --- 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;