From owner-freebsd-arch Fri May 19 5:16:38 2000 Delivered-To: freebsd-arch@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id A0D9B37B65D for ; Fri, 19 May 2000 05:16:33 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id OAA63438; Fri, 19 May 2000 14:16:26 +0200 (CEST) (envelope-from des@flood.ping.uio.no) To: Hajimu UMEMOTO (=?iso-2022-jp?b?GyRCR19LXBsoQiAbJEJIJRsoQg==?=) Cc: arch@freebsd.org Subject: Re: fetch(1) References: <200005161852.e4GIqhF74521@peace.mahoroba.org> <200005162001.e4GK1bF75342@peace.mahoroba.org> <200005191105.e4JB5lx90246@plum.ssr.bisd.hitachi.co.jp> From: Dag-Erling Smorgrav Date: 19 May 2000 14:16:25 +0200 In-Reply-To: Hajimu UMEMOTO's message of "Fri, 19 May 2000 20:05:47 +0900" Message-ID: Lines: 16 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hajimu UMEMOTO (梅本 肇) writes: > >>>>> 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. No, look at the code that uses the macro. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message