Commit 5c25c7bb authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

when getting a FTP file with NOBODY, we will no longer return error if

SIZE doesn't work, we just don't output any size info!
parent a6d9ccf6
Loading
Loading
Loading
Loading
+21 −22
Original line number Diff line number Diff line
@@ -848,10 +848,8 @@ CURLcode _ftp(struct connectdata *conn)
    if(nread < 0)
      return CURLE_OPERATION_TIMEOUTED;

    if(ftpcode != 213) {
      failf(data, "Couldn't get file size: %s", buf+4);
      return CURLE_FTP_COULDNT_GET_SIZE;
    }
    if(ftpcode == 213) {

      /* get the size from the ascii string: */
      filesize = atoi(buf+4);

@@ -877,6 +875,7 @@ CURLcode _ftp(struct connectdata *conn)
          return result;
      }
#endif
    }

    return CURLE_OK;
  }