cURL / Mailing Lists / curl-library / Single Mail


FTP wildcard problem

From: Justin Maggard <>
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?


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 wc_statemach(conn);
List admin:
Received on 2014-02-27