]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Code 250 is okay as well as the previous 226-code after a successful file
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jul 2000 07:26:29 +0000 (07:26 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jul 2000 07:26:29 +0000 (07:26 +0000)
transfer

lib/ftp.c

index c0d126c2b7aec8339672023ed9643d5ed9be01ab..b651048d56e6e5048cba9e93471ca598fff51bc0 100644 (file)
--- 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;
   }