From 61d259f95045c2ec029d4234af80b00d91fec080 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 12 Apr 2013 15:29:28 +0200 Subject: 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 --- tests/data/test1225 | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 tests/data/test1225 (limited to 'tests/data/test1225') diff --git a/tests/data/test1225 b/tests/data/test1225 new file mode 100644 index 000000000..2b2519c94 --- /dev/null +++ b/tests/data/test1225 @@ -0,0 +1,57 @@ + + + +FTP +PASV +RETR + + +# Server-side + + +data + to + see +that FTP +works + so does it? + + + +# Client-side + + +ftp + + +FTP fetch two files using absolute paths + + +ftp://%HOSTIP:%FTPPORT//foo/1225 ftp://%HOSTIP:%FTPPORT//foo/bar/1225 + + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD / +CWD foo +EPSV +TYPE I +SIZE 1225 +RETR 1225 +CWD / +CWD / +CWD foo +CWD bar +EPSV +SIZE 1225 +RETR 1225 +QUIT + + + -- cgit v1.2.3