cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftp'ing multiple files

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 10 May 2001 11:32:11 +0200 (MET DST)

On Wed, 9 May 2001, Rodney Simmons wrote:

> I have found a problem. I'm using libcurl.dll (built with M$VC++ 6.0) to
> transfer multiple files to a unix machines. The ftp url is something
> along these lines:

> ftp://abc.def.ghi.jkl/asfi/L85020010509124010,
> ftp://abc.def.ghi.jkl/asfi/L85020010509124011,
> etc..

> The first file transfers successfully but the subsequent files fail
> because libcurl cannot change to /asfi directory. Here is the verbose
> output:

This is an obvious bug. It stands clear to me that the first 'CWD' command is
using the correct directory, while the second and later commands don't use
the correct dir (but instead wrongly prefix it with a slash).

> Is this a bug or is there some setting tham I'm missing? Again, this is
> a great utility and I appreciate any help that I get.

Please try the attached patch and see if the problem is fixed. I could repeat
your problem before this was made, and after this change it seemed to work.

Thanks for your detailed report!

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/

_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library

Received on 2001-05-10