From owner-freebsd-arch Fri May 19 4: 6: 4 2000 Delivered-To: freebsd-arch@freebsd.org Received: from hitpro.hitachi.co.jp (hitpro.hitachi.co.jp [133.145.224.7]) by hub.freebsd.org (Postfix) with ESMTP id 47CF137BED7 for ; Fri, 19 May 2000 04:06:00 -0700 (PDT) (envelope-from ume@bisd.hitachi.co.jp) Received: from bisdgw.bisd.hitachi.co.jp by hitpro.hitachi.co.jp (8.9.3/3.7W-hitpro) id UAA12891; Fri, 19 May 2000 20:05:48 +0900 (JST) Received: from plum.ssr.bisd.hitachi.co.jp by bisdgw.bisd.hitachi.co.jp (8.9.3+3.2W/3.7W-bisdgw) with ESMTP id UAA19077; Fri, 19 May 2000 20:05:48 +0900 (JST) (envelope-from ume@bisd.hitachi.co.jp) Received: from localhost (IDENT:yUwXhSlivMgjZUxRfPpZ1qGGOdHzcNgJRaKsZIVxmB77B5ZtSgJlTgMGFvb0TXfM@localhost [::1]) by plum.ssr.bisd.hitachi.co.jp (8.10.1/3.7W-plum) with ESMTP id e4JB5lx90246; Fri, 19 May 2000 20:05:47 +0900 (JST) (envelope-from ume@bisd.hitachi.co.jp) Message-Id: <200005191105.e4JB5lx90246@plum.ssr.bisd.hitachi.co.jp> To: des@flood.ping.uio.no Cc: arch@freebsd.org Subject: Re: fetch(1) From: Hajimu UMEMOTO (=?iso-2022-jp?B?GyRCR19LXBsoQiAbJEJIJRsoQg==?=) In-Reply-To: References: <200005161852.e4GIqhF74521@peace.mahoroba.org> <200005162001.e4GK1bF75342@peace.mahoroba.org> X-Mailer: xcite1.20> Mew version 1.94.2 on XEmacs 21.1 (Bryce Canyon) X-PGP-Fingerprint: D3 3D D3 54 88 13 DE 22 3F 31 C4 4D A1 08 84 7B X-PGP-Public-Key: http://www.imasy.org/~ume/ume@bisd.hitachi.co.jp.asc X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 4.0-STABLE Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 19 May 2000 20:05:47 +0900 X-Dispatcher: imput version 20000228(IM140) Lines: 29 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> On 19 May 2000 11:28:57 +0200 >>>>> des@flood.ping.uio.no (Dag-Erling Smorgrav) said: des> #define isftpreply(foo) (isdigit(foo[0]) && isdigit(foo[1]) \ des> - && isdigit(foo[2]) && foo[3] == ' ') des> + && isdigit(foo[2]) \ des> + && (foo[3] == ' ' || foo[3] == '\0')) Umm, I believe SPACE at foo[3] is not a optional text but required one. If actually foo[3] == '\0', it should be protocol error. RFC959 4.2. FTP REPLIES says: >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 , 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 -- Hajimu UMEMOTO @ Business Solution System Development Div., Hitachi Ltd. E-Mail: ume@bisd.hitachi.co.jp ume@mahoroba.org ume@FreeBSD.org URL: http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message