Commit de96719a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

support <size>-1</size> to completely disable the SIZE command

parent 9876ed09
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -175,9 +175,15 @@ sub SIZE_command {
    my $size = $data[0];

    if($size) {
        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;
        @data = getpart("reply", "data");