NetBSD Problem Report #741

From gnats  Thu Jan 19 15:57:33 1995
Received: from Collatz.McRCIM.McGill.EDU (Collatz.McRCIM.McGill.EDU [132.206.78.1]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id PAA02880 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 19 Jan 1995 15:57:26 -0800
Message-Id: <199501192357.SAA20858@Collatz.McRCIM.McGill.EDU>
Date: Thu, 19 Jan 1995 18:57:17 -0500
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
Reply-To: mouse@Collatz.McRCIM.McGill.EDU
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: ftp client mis-does SYST query
X-Send-Pr-Version: 3.2

>Number:         741
>Category:       bin
>Synopsis:       ftp client mis-does SYST query
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 19 16:05:02 +0000 1995
>Closed-Date:    Fri Dec 06 02:31:00 +0000 1996
>Last-Modified:  Fri Dec 06 02:31:44 +0000 1996
>Originator:     der Mouse
>Release:        NetBSD/sparc 1.0
>Organization:
	As little as possible
>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
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: cgd 
State-Changed-When: Sun Jan 22 21:40:00 PST 1995 
State-Changed-Why:  
i've looked it over, and trying to figure out whether another command 
or two are broken by the same problem. 
State-Changed-From-To: analyzed->closed 
State-Changed-By: lukem 
State-Changed-When: Thu Dec 5 18:31:00 PST 1996 
State-Changed-Why:  
fixed. getreply() now stores *first* line of reply in reply_string[], 
not last line. means that multi-line MDTM and SIZE replies should work 
too. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.49 2026/05/14 01:52:41 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.