cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP wildcard problem

From: Pavel Raiskup <praiskup_at_redhat.com>
Date: Sun, 2 Mar 2014 05:56:27 -0500 (EST)

Hello Justin,

> ----- Original Message -----
> From: "Justin Maggard" <jmaggard10_at_gmail.com>
> To: "libcurl development" <curl-library_at_cool.haxx.se>
> Sent: Thursday, February 27, 2014 10:26:00 PM
> Subject: FTP wildcard problem
>
> 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?

thanks for the report. Are you testing against git master branch? From a
very quick observation, it seems to me that this (or at least similar)
issue was fixed by Dan:

  commit c631a54bb60b2bbaf5085a679ce140330158d513 (HEAD, refs/bisect/bad)
  Author: Dan Fandrich <dan_at_coneharvesters.com>
  AuthorDate: Wed Jan 29 22:40:57 2014 +0100

      ftp: fixed a memory leak on wildcard error path

Pavel
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-02