Date: Fri, 28 Jul 2000 01:52:23 -0700 (PDT) From: taguchi@tohoku.iij.ad.jp To: freebsd-gnats-submit@FreeBSD.org Subject: bin/20236: fetch(1) on 4.1 requires MDTM Message-ID: <20000728085223.3769F37B50D@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000728085223.3769F37B50D>