Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2004 04:10:20 -0800 (PST)
From:      Gleb Smirnoff <glebius@cell.sick.ru>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/64111: libfetch does not use the FTP_PROXY and HTTP_PROXY vars as documented
Message-ID:  <200403171210.i2HCAKhu099875@freefall.freebsd.org>

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

From: Gleb Smirnoff <glebius@cell.sick.ru>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: misc/64111: libfetch does not use the FTP_PROXY and HTTP_PROXY vars as documented
Date: Wed, 17 Mar 2004 15:08:03 +0300

 On Wed, Mar 17, 2004 at 12:10:19AM -0800, Gleb Smirnoff wrote:
 T>  However, fetch.3 says:
 T>  
 T>                           If this variable is set to an empty string, no proxy
 T>                           will be used for FTP requests, even if the HTTP_PROXY
 T>                           variable is set.
 T>  
 T>  And this is definitely not true. So, this issue must be considered a doc-bug.
 
 I'm very sorry! The above statement is correct. But I think there should be
 explicitly said that HTTP_PROXY is used for ftp in absence of FTP_PROXY.
 
 Like this:
 
 			If HTTP_PROXY variable is defined and FTP_PROXY is not,
 			http proxy is used. To avoid this behavior, one should
 			set FTP_PROXY to an empty string. In this case no proxy
 			will be used for FTP requests, even if the HTTP_PROXY
 			variable is set.
 
 Here is patch:
 
 --- fetch.3.orig        Wed Mar 17 11:05:32 2004
 +++ fetch.3     Wed Mar 17 14:43:44 2004
 @@ -472,8 +472,14 @@
  .Ql host
  is the name of the FTP server.
  .Pp
 -If this variable is set to an empty string, no proxy will be used for
 -FTP requests, even if the
 +If
 +.Ev HTTP_PROXY
 +variable is defined and
 +.Ev FTP_PROXY
 +is not, http proxy is used. To avoid this behavior, one should set
 +.Ev FTP_PROXY
 +to an empty string. In this case no proxy will be used for FTP requests,
 +even if the
  .Ev HTTP_PROXY
  variable is set.
  .It Ev ftp_proxy
 
 -- 
 Totus tuus, Glebius.
 GLEBIUS-RIPN GLEB-RIPE



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