cURL / Mailing Lists / curl-library / Single Mail


Re: FTP wildcard problem

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

Hello Justin,

> ----- Original Message -----
> From: "Justin Maggard" <>
> To: "libcurl development" <>
> 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 <>
  AuthorDate: Wed Jan 29 22:40:57 2014 +0100

      ftp: fixed a memory leak on wildcard error path

List admin:
Received on 2014-03-02