mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
61d259f950
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
50 lines
557 B
Plaintext
50 lines
557 B
Plaintext
<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 with singlecwd
|
|
</name>
|
|
<command>
|
|
ftp://%HOSTIP:%FTPPORT//1226 --ftp-method singlecwd
|
|
</command>
|
|
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
CWD /
|
|
EPSV
|
|
TYPE I
|
|
SIZE 1226
|
|
RETR 1226
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|