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
>Organization:
As little as possible
>Release: NetBSD/sparc 1.0
>Environment:
SPARCstation IPC, I think - it doesn't matter anyway
>Description:
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....)
>How-To-Repeat:
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 mouse@collatz.mcrcim.mcgill.edu 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.)
>Fix:
Presumably, make ftp handle multiline SYST replies correctly.
(I haven't done a fix myself this time.)
der Mouse
mouse@collatz.mcrcim.mcgill.edu
>Audit-Trail:
>Unformatted: