mirror of
https://github.com/curl/curl.git
synced 2026-07-23 08:37:16 +03:00
FTP: allow SIZE to fail when doing (resumed) upload
Added test 362 to verify.
Reported-by: Jordan Brown
Regression since 7ea2e1d0c5 (7.73.0)
Fixes #6715
Closes #6725
This commit is contained in:
parent
dcccd8dd25
commit
7b2f0676c2
3 changed files with 58 additions and 3 deletions
|
|
@ -2309,8 +2309,12 @@ static CURLcode ftp_state_size_resp(struct Curl_easy *data,
|
|||
|
||||
}
|
||||
else if(ftpcode == 550) { /* "No such file or directory" */
|
||||
failf(data, "The file does not exist");
|
||||
return CURLE_REMOTE_FILE_NOT_FOUND;
|
||||
/* allow a SIZE failure for (resumed) uploads, when probing what command
|
||||
to use */
|
||||
if(instate != FTP_STOR_SIZE) {
|
||||
failf(data, "The file does not exist");
|
||||
return CURLE_REMOTE_FILE_NOT_FOUND;
|
||||
}
|
||||
}
|
||||
|
||||
if(instate == FTP_SIZE) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue