From owner-freebsd-bugs Sun Nov 26 9:20: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E9CCE37B479 for ; Sun, 26 Nov 2000 09:20:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA36901; Sun, 26 Nov 2000 09:20:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Sun, 26 Nov 2000 09:20:03 -0800 (PST) Message-Id: <200011261720.JAA36901@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: i386/23067: fetch in FreeBSD 4.2 does not work with FTP proxy Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR i386/23067; it has been noted by GNATS. From: Peter Pentchev To: Dag-Erling Smorgrav Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: i386/23067: fetch in FreeBSD 4.2 does not work with FTP proxy Date: Sun, 26 Nov 2000 19:18:13 +0200 On Sun, Nov 26, 2000 at 08:10:03AM -0800, Dag-Erling Smorgrav wrote: > The following reply was made to PR i386/23067; it has been noted by GNATS. > > From: Dag-Erling Smorgrav > To: tarjei.jensen@kvaerner.com > Cc: freebsd-gnats-submit@FreeBSD.ORG > Subject: Re: i386/23067: fetch in FreeBSD 4.2 does not work with FTP proxy > Date: 26 Nov 2000 17:01:41 +0100 > > tarjei.jensen@kvaerner.com writes: > > With 4.2 and the same setup, the fetch stuff seems to try to use the > > ftp proxy as a http proxy. When I use fetch -v it says that it > > connects to port 80 on the ftp proxy. It is supposed to use port 21 > > and log in as user@remote_host. > > RTFM. There was no call for that now, was there - this PR is already closed to the originator's satisfaction - explicitly specifying the URL schema as ftp:// does the trick. However, your remark begs the question - *which* manual? Neither the fetch(1), nor the fetch(3) manpage on -stable suggests that HTTP is used as the default schema - I was able to find out this was a schema problem only by grepping for FTP_PROXY in src/lib/libfetch and scanning the annotated CVS file around the found lines :( And just to show that I'm writing this in good faith, not to slight or anything, attached is a proposed patch to fetch.1 to document this HTTP default. The patch is against -stable, but it also applies cleanly to -current with 1-line fuzz. And btw - since I am not at all comfortable with mdoc - is .Em the right tag to use for the ftp:// prefix on the last line? I tried using .Pf, but it would not allow me to glue a dot at the end :( On second thoughts.. wouldn't this be better documented in fetch(3).. But still, I'd think it deserves mentioning in fetch(1). G'luck, Peter -- If the meanings of 'true' and 'false' were switched, then this sentence wouldn't be false. Index: fetch.1 =================================================================== RCS file: /home/ncvs/src/usr.bin/fetch/fetch.1,v retrieving revision 1.33.2.4 diff -u -r1.33.2.4 fetch.1 --- fetch.1 2000/07/21 11:20:05 1.33.2.4 +++ fetch.1 2000/11/26 17:12:38 @@ -238,3 +238,13 @@ and .Fl f options and specify URLs on the command line. +.Pp +All URL's processed by +.Nm +(including those specified on the command line, or those given in the +.Ev FTP_PROXY +and +.Ev HTTP_PROXY +environment variables) are considered by default to be HTTP URL's, +unless explicitly given an FTP schema by prefixing them with +.Em ftp:// . To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message