cURL / Mailing Lists / curl-library / Single Mail


Re: fix for known bug #44

From: <>
Date: Thu, 27 Sep 2007 09:02:09 -0700 (PDT)

On Thu, 27 Sep 2007, Daniel Stenberg 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.
In other words, an absolute path does never require CWD <entrypath> and a
relative path ONLY requires it if we CWDed before.

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

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.

Take care all
Received on 2007-09-27