diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-04-12 15:29:28 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-04-12 22:43:13 +0200 |
commit | 61d259f95045c2ec029d4234af80b00d91fec080 (patch) | |
tree | 5aa64b7102d3f9acdde7890adfe8202f7ba03037 /tests/data/test1224 | |
parent | c01735865fcf0f35bb845762a9791c32ce9c0c4d (diff) |
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
Diffstat (limited to 'tests/data/test1224')
-rw-r--r-- | tests/data/test1224 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/data/test1224 b/tests/data/test1224 new file mode 100644 index 000000000..315936b99 --- /dev/null +++ b/tests/data/test1224 @@ -0,0 +1,49 @@ +<testcase> +<info> +<keywords> +FTP +PASV +RETR +</keywords> +</info> +# Server-side +<reply> +<data> +data + to + see +that FTP +works + so does it? +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> + <name> +FTP fetch a file from the root directory + </name> + <command> +ftp://%HOSTIP:%FTPPORT//1224 +</command> + +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous
+PASS ftp@example.com
+PWD
+CWD /
+EPSV
+TYPE I
+SIZE 1224
+RETR 1224
+QUIT
+</protocol> +</verify> +</testcase> |