Subject: bin/741: ftp client mis-does SYST query
To: None <gnats-admin@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
Date: 01/19/1995 16:05:05
>Synopsis: ftp client mis-does SYST query
>Responsible: bin-bug-people (Utility Bug People)
>Arrival-Date: Thu Jan 19 16:05:02 1995
>Originator: der Mouse
As little as possible
>Release: NetBSD/sparc 1.0
SPARCstation IPC, I think - it doesn't matter anyway
The FTP client sends a SYST command to identify the type of the
remote server, but mis-parses the reply. (It uses the first
word of the last line of the reply. RFC959 says that "The
reply shall have as its first word one of the system names
listed in the current version of the Assigned Numbers
document"; I can't see how this can be construed to mean the
first word of the last line of the reply....)
Find or create an FTP server that produces a multi-line reply
to SYST. (Mine, on collatz.mcrcim.mcgill.edu, will do nicely.)
Fire up ftp to it and watch it pick up the wrong word. For
collatz, the SYST reply is
215-UNIX-BSD (well, system is a NeXT cube running NeXT release 2.1)
215-The FTP server is experimental, written in a stack language.
215 Please mail firstname.lastname@example.org if you have problems.
and upon FTPing to it, I see "Remote system type is Please.".
(You don't need to log in; I see this even with ftp -n.)
Presumably, make ftp handle multiline SYST replies correctly.
(I haven't done a fix myself this time.)