cURL / Mailing Lists / curl-library / Single Mail


Re: fix for known bug #44

From: Daniel Stenberg <>
Date: Thu, 27 Sep 2007 21:47:44 +0200 (CEST)

On Thu, 27 Sep 2007, wrote:

>> How about making the condition that prevents the CWD to check for the
>> NOPWD option _and_ an absolute path?
> Adding a check for NOCWD will not work correctly, as it might not have
> been specified in the first transfer and therefore we might not be in the
> good directory to treat a possible relative path.

... which is why I mentioned "an absolute path" ;-)

If we're doing a transfer on a relative path, we must make sure that we switch
back to the entry path first (if not there already).

> I think we can use ftpc->prevpath to check whether we ever CWDed and decide
> when the user supplies a relative path.

We already do a check if libcurl sits in the entrypath directory as then
there's no CWD done.

> But anyway, that won't be for me. At least not in the next couple of weeks.
> I'm off on holiday now. Will be back only at the end of October.


  Commercial curl and libcurl Technical Support:
Received on 2007-09-27