From owner-freebsd-bugs Fri Jul 28 2: 0:16 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 4F6F637C1D3 for ; Fri, 28 Jul 2000 02:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA49542; Fri, 28 Jul 2000 02:00:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 3769F37B50D; Fri, 28 Jul 2000 01:52:23 -0700 (PDT) Message-Id: <20000728085223.3769F37B50D@hub.freebsd.org> Date: Fri, 28 Jul 2000 01:52:23 -0700 (PDT) From: taguchi@tohoku.iij.ad.jp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/20236: fetch(1) on 4.1 requires MDTM Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20236 >Category: bin >Synopsis: fetch(1) on 4.1 requires MDTM >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 28 02:00:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Taguchi, Takeshi >Release: 4.1-stable >Organization: IIJ >Environment: FreeBSD hoya 4.1-STABLE FreeBSD 4.1-STABLE #0: Fri Jul 28 14:21:41 JST 2000 root@hoya:/usr/obj/usr/src/sys/HOYA i386 >Description: Since 4.1R, fetch requires MTDM supports to ftpd. Because in /usr/src/lib/libfetch/ftp.c: static int _ftp_stat(int cd, char *file, struct url_stat *us) { ...... if ((e = _ftp_cmd(cd, "MDTM %s", s)) != FTP_FILE_STATUS) { _ftp_seterr(e); return -1; /* HERE!! */ } ...... } So if ftpd does not support MTDM, then connection will be closed. MTDM is NOT RFC yet. And some ftpds do NOT support MTDM. Such as Solaris2.8's one, and MS ftpd version4. This means fetch(1) on 4.1R can not talk them! >How-To-Repeat: >Fix: Sorry, I can't make patch. I think if ((e = _ftp_cmd(cd, "MDTM %s", s)) != FTP_FILE_STATUS) { /* _ftp_seterr(e); return -1; */ ln = "000000000000"; /* or more better value */ } may be work.... Is this correct? >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message