curl-library
FTP wildcard problem
Date: Thu, 27 Feb 2014 13:26:00 -0800
I'm using the wildcard matching functionality of libcurl to do
recursive FTP backups, and I've run into a problem. Each time I hit
an empty directory, then next call to curl_easy_perform() just quits
immediately. This following simple patch makes it work for me, by not
considering an empty wildcard match an error, but this may not be the
correct approach. Any thoughts?
-Justin
diff --git a/lib/ftp.c b/lib/ftp.c
index b9faa3a..ef3318d 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3915,7 +3915,6 @@ static CURLcode wc_statemach(struct connectdata *conn)
else if(wildcard->filelist->size == 0) {
/* no corresponding file */
wildcard->state = CURLWC_CLEAN;
- return CURLE_REMOTE_FILE_NOT_FOUND;
}
return wc_statemach(conn);
}
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-27