aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-07-25 07:26:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-07-25 07:26:29 +0000
commitd9c41a0ffd37fa3f4e7009d71ffd1d11fbc0889c (patch)
treee68dcf95379ed60d76b727b18ea4d39cbf100f9c
parent1ef3600a0731fef8f59563a1e49981f1b64b9746 (diff)
Code 250 is okay as well as the previous 226-code after a successful file
transfer
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index c0d126c2b..b651048d5 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -423,8 +423,8 @@ CURLcode ftp_done(struct connectdata *conn)
just performed: */
nread = GetLastResponse(data->firstsocket, buf, data);
- /* 226 Transfer complete */
- if(strncmp(buf, "226", 3)) {
+ /* 226 Transfer complete, 250 Requested file action okay, completed. */
+ if(!strncmp(buf, "226", 3) && !strncmp(buf, "250", 3)) {
failf(data, "%s", buf+4);
return CURLE_FTP_WRITE_ERROR;
}