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/test1226 | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 tests/data/test1226 (limited to 'tests/data/test1226') diff --git a/tests/data/test1226 b/tests/data/test1226 new file mode 100644 index 000000000..6381b122a --- /dev/null +++ b/tests/data/test1226 @@ -0,0 +1,49 @@ + + + +FTP +PASV +RETR + + +# Server-side + + +data + to + see +that FTP +works + so does it? + + + +# Client-side + + +ftp + + +FTP fetch a file from the root directory with singlecwd + + +ftp://%HOSTIP:%FTPPORT//1226 --ftp-method singlecwd + + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD / +EPSV +TYPE I +SIZE 1226 +RETR 1226 +QUIT + + + -- cgit v1.2.3