cURL / Mailing Lists / curl-library / Single Mail

curl-library

ftp->prevpath bug?

From: Gisle Vanem <giva_at_bgnett.no>
Date: Thu, 16 Dec 2004 17:17:49 +0100

>curl -v -upload .htaccess ftp://host/www_sider/
...
< 257 "/" is current directory.
* Entry path is '/'
> CWD www_sider
< 250 CWD command successful.
> PORT 10,0,0,6,4,45
< 200 PORT command successful.
* Ordered connect of the data stream with PORT!
> TYPE I
< 200 Type set to I
> STOR .htaccess
< 150 Opening BINARY mode data connection for '.htaccess'.
* Connection accepted from server
* Remembering we are in dir www_sider/%2

I didn't quite understand the logic around 'prevpath' in ftp.c. So where
does the "%2" come from?

And if I try to upload two files (--upload {file1,filre2}) to the same destination,
'prevpath' is correct after file2 only.

--gv
Received on 2004-12-16