support <size>-1</size> to completely disable the SIZE command
This commit is contained in:
Родитель
9876ed09fe
Коммит
de96719a45
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче