From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 17 04:10:21 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02AD216A4CE for ; Wed, 17 Mar 2004 04:10:21 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE7EF43D3F for ; Wed, 17 Mar 2004 04:10:20 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2HCAKbv099876 for ; Wed, 17 Mar 2004 04:10:20 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2HCAKhu099875; Wed, 17 Mar 2004 04:10:20 -0800 (PST) (envelope-from gnats) Date: Wed, 17 Mar 2004 04:10:20 -0800 (PST) Message-Id: <200403171210.i2HCAKhu099875@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Gleb Smirnoff Subject: Re: misc/64111: libfetch does not use the FTP_PROXY and HTTP_PROXY vars as documented X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gleb Smirnoff List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2004 12:10:21 -0000 The following reply was made to PR misc/64111; it has been noted by GNATS. From: Gleb Smirnoff 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