FTP: access files in root dir correctly

Accessing a file with an absolute path in the root dir but with no
directory specified was not handled correctly. This fix comes with four
new test cases that verify it.

Bug: http://curl.haxx.se/mail/lib-2013-04/0142.html
Reported by: Sam Deane
This commit is contained in:
Daniel Stenberg
2013-04-12 15:29:28 +02:00
parent c01735865f
commit 61d259f950
7 changed files with 221 additions and 4 deletions

View File

@@ -39,7 +39,8 @@ FTP GET with type=A style ASCII URL using %20 codes
USER anonymous
PASS ftp@example.com
PWD
CWD /path with spaces
CWD /
CWD path with spaces
CWD and things2
EPSV
TYPE A