From owner-freebsd-arch Tue May 16 13: 6: 2 2000 Delivered-To: freebsd-arch@freebsd.org Received: from peace.mahoroba.org (peace.calm.imasy.or.jp [202.227.26.34]) by hub.freebsd.org (Postfix) with ESMTP id C197A37BB80 for ; Tue, 16 May 2000 13:05:57 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:swDsu/GOFUZmCyEOJ0KRa8dLopoP3e4on2+sDkUZSFSnrHgIaWAtiVnO+b3ubINH@localhost [::1]) by peace.mahoroba.org (8.10.1/3.7W-peace) with ESMTP id e4GK1bF75342; Wed, 17 May 2000 05:01:37 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Wed, 17 May 2000 05:01:37 +0900 (JST) Message-Id: <200005162001.e4GK1bF75342@peace.mahoroba.org> To: des@flood.ping.uio.no Cc: arch@freebsd.org Subject: Re: fetch(1) In-Reply-To: <200005161852.e4GIqhF74521@peace.mahoroba.org> References: <200005122016.e4CKGtF38185@peace.mahoroba.org> <200005161852.e4GIqhF74521@peace.mahoroba.org> X-Mailer: xcite1.20> Mew version 1.94.2 on Emacs 20.6 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit From: Hajimu UMEMOTO (=?ISO-2022-JP?B?GyRCR19LXBsoQiA=?= =?ISO-2022-JP?B?GyRCSCUbKEI=?=) X-Dispatcher: imput version 20000228(IM140) Lines: 40 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>> Wed, 17 May 2000 03:52:43 +0900 (JST) の刻に「うめ」、すなわち >>> Hajimu UMEMOTO (梅本 肇) 氏曰く >>>>> On 15 May 2000 09:53:04 +0200 >>>>> Dag-Erling Smorgrav said: ume> There is one more problem. If us.size is -1 with HTTP, gotten file is ume> shorten than original one. One more. Fetch to ftp.openbsd.org fails with `999 Protocol error'. Ftp.openbsd.org seems to return '230 ' without any trailing message. libfetch: Info: sending 'PASS ftp' libfetch: Info: got reply '230- Guest login ok, access restrictions apply.' libfetch: Info: got reply '230- Local time is: Tue May 16 13:45:33 2000' libfetch: Info: got reply '230 ' libfetch: Protocol error (999 Protocol error) Index: ftp.c =================================================================== RCS file: /home/ncvs/src/lib/libfetch/ftp.c,v retrieving revision 1.19 diff -u -r1.19 ftp.c --- ftp.c 2000/05/15 08:24:58 1.19 +++ ftp.c 2000/05/16 19:57:02 @@ -120,7 +120,7 @@ #endif } while (isftpinfo(last_reply)); - while (lr_length && isspace(last_reply[lr_length-1])) + while (lr_length && isspace(last_reply[lr_length-1]) && lr_length > 4) lr_length--; last_reply[lr_length] = 0; -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message