Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Nov 2000 09:20:03 -0800 (PST)
From:      Peter Pentchev <roam@orbitel.bg>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/23067: fetch in FreeBSD 4.2 does not work with FTP proxy
Message-ID:  <200011261720.JAA36901@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/23067; it has been noted by GNATS.

From: Peter Pentchev <roam@orbitel.bg>
To: Dag-Erling Smorgrav <des@ofug.org>
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 <des@ofug.org>
 > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011261720.JAA36901>