ftp: ignore a 550 response to MDTM

The 550 is overused as a return code for multiple error case, e.g.
file not found and/or insufficient permissions to access the file.

So we cannot fail hard in this case.

Adjust test 511 since we now fail later.
Add new test 3027 which check that when MDTM failed, but the file could
actually be retrieved, that in this case no filetime is provided.

Reported-by: Michael Heimpold
Fixes #9357
Closes #9387
This commit is contained in:
Michael Heimpold 2022-08-24 18:58:02 +02:00 committed by Daniel Stenberg
parent f703cf971c
commit d668685657
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 124 additions and 5 deletions

View file

@ -44,6 +44,8 @@ USER anonymous
PASS ftp@example.com
PWD
MDTM %TESTNUMBER
TYPE I
SIZE %TESTNUMBER
QUIT
</protocol>
</verify>