|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1739100 ] Double slashes and root dir
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 19 Jun 2007 02:09:00 -0700
Bugs item #1739100, was opened at 2007-06-18 16:25
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
I think this means libcurl will ignore double slashes unless it's the first in the path, which will bring us to the root dir. But that's not what is happening. libcurl is always ignoring the double slashes leaving us with no way to list the root directory. (Except .. hacks)
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
The nocwd.patch makes it do a directory listing, sure but it breaks the
I don't see any problem with singlecwd, neither with listing to the root
----------------------------------------------------------------------
Comment By: Robson Braga Araujo (braga)
Message:
Here is a patch for the nocwd problem. I haven't looked into the singlecwd
----------------------------------------------------------------------
Comment By: Robson Braga Araujo (braga)
Message:
Also, if you use CURLFTPMETHOD_NOCWD, libcurl always does a SIZE and a
----------------------------------------------------------------------
Comment By: Robson Braga Araujo (braga)
Message:
Thanks for fixing.
> Funnily enough, the bug does not appear when using
This is a bug too. If you use --ftp-method singlecwd, libcurl always sets
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
I've committed fix for this now, and two test cases.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
I get it now. Funnily enough, the bug does not appear when using
----------------------------------------------------------------------
Comment By: Robson Braga Araujo (braga)
Message:
ftp://ftp.sunet.se// gets the root dir because ftp.sunet.se doesn't
$ curl -v ftp://robson@localhost//
It is listing /ssh directory instead of the / directory.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Sorry, but can you tell me what the problem is with this.
> Using ftp://ftp.sunet.se/%2F works well.
Actually, that does NOT work well I would say as that will make curl issue
But ok, please confirm the following: I guess the problem here is you want
(I guess you've said this all along but I haven't understood it)
----------------------------------------------------------------------
Comment By: Robson Braga Araujo (braga)
Message:
This indeed works. But if you try just ftp://ftp.sunet.se// you won't be
I tried with curl-7.16.2.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
I can't repeat (or possibly understand) your problem:
I take it you use 7.16.2 or a recent CVS?
I tried with both doing this:
$ curl ftp://ftp.sunet.se//lib/ -v
And both versions jump to the directory "/lib" that is based on the root
I also tried the more official way of doing it, by specifying %2f instead
$ curl ftp://ftp.sunet.se/%2flib/ -v
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info