Subject: bin/741: ftp client mis-does SYST query
To: None <gnats-admin@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: netbsd-bugs
Date: 01/19/1995 16:05:05
>Number:         741
>Category:       bin
>Synopsis:       ftp client mis-does SYST query
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>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, 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 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.)

					der Mouse