from RFC959 :

"A ftp reply is defined to contain the 3-digit code, followed by Space <SP>, 
followed by one line of text (where some maximum line length has been 
specified), and terminated by the Telnet end-of-line code. There will be cases 
however, where the text is longer than a single line. In these cases the 
complete text must be bracketed so the User-process knows when it may stop 
reading the reply (i.e. stop processing input on the control connection) and go 
do other things. This requires a special format on the first line to indicate 
that more than one line is coming, and another on the last line to designate it 
as the last. At least one of these must contain the appropriate reply code to 
indicate the state of the transaction. To satisfy all factions, it was decided 
that both the first and last line codes should be the same.
Thus the format for multi-line replies is that the first line will begin with 
the exact required reply code, followed immediately by a Hyphen, "-" (also 
known as Minus), followed by text. The last line will begin with the same code, 
followed immediately by Space <SP>, optionally some text, and the Telnet 
end-of-line code.
 For example:
 123-First line
 Second line
 234 A line beginning with numbers
 123 The last line"

ubuntu ftp doesn't seem to implement correctely this standard, or
misunderstand the "-".

-- 
ftp connection with AR7 processors doesn't work properly
https://bugs.launchpad.net/bugs/313257
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to