Files
rtems/testsuites/libtests/ftp01/ftp01.scn
T
Sebastian Huber b63c8f9b50 ftpfs: Fix SIZE command handling
It is invalid to issue a SIZE command once a data transfer is
in progress.  For reads we issue the SIZE command before the RETR
command and get a snapshot of the file size.  For writes the file size
is initialized to zero and incremented for each write chunk.
2013-01-28 16:46:02 +01:00

74 lines
1.4 KiB
Plaintext

*** TEST FTP 1 ***
syslog: ftpd: FTP daemon started (2 sessions max)
220 RTEMS FTP server (Version 1.1-JWJ) ready.
USER anonymous
230 User logged in.
TYPE I
200 Type set to I.
PASV
227 Entering passive mode (127,0,0,1,4,1).
STOR a.txt
150 Opening BINARY mode data connection.
226 Transfer complete.
QUIT
221 Goodbye.
220 RTEMS FTP server (Version 1.1-JWJ) ready.
USER anonymous
230 User logged in.
TYPE I
200 Type set to I.
SIZE a.txt
213 1102
PASV
227 Entering passive mode (127,0,0,1,4,4).
RETR a.txt
150 Opening BINARY mode data connection.
220 RTEMS FTP server (Version 1.1-JWJ) ready.
USER anonymous
230 User logged in.
TYPE I
200 Type set to I.
PASV
227 Entering passive mode (127,0,0,1,4,7).
STOR b.txt
150 Opening BINARY mode data connection.
226 Transfer complete.
226 Transfer complete.
QUIT
221 Goodbye.
QUIT
221 Goodbye.
220 RTEMS FTP server (Version 1.1-JWJ) ready.
USER anonymous
230 User logged in.
TYPE I
200 Type set to I.
SIZE b.txt
213 1102
PASV
227 Entering passive mode (127,0,0,1,4,10).
RETR b.txt
150 Opening BINARY mode data connection.
226 Transfer complete.
QUIT
221 Goodbye.
220 RTEMS FTP server (Version 1.1-JWJ) ready.
USER anonymous
230 User logged in.
TYPE I
200 Type set to I.
SIZE a.txt
213 1102
QUIT
221 Goodbye.
220 RTEMS FTP server (Version 1.1-JWJ) ready.
USER anonymous
230 User logged in.
TYPE I
200 Type set to I.
SIZE b.txt
213 1102
QUIT
221 Goodbye.
*** END OF TEST FTP 1 ***