From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 17 00:10:19 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 75BC616A4CE for ; Wed, 17 Mar 2004 00:10:19 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5457F43D3F for ; Wed, 17 Mar 2004 00:10:19 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2H8AJbv054571 for ; Wed, 17 Mar 2004 00:10:19 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2H8AJnq054570; Wed, 17 Mar 2004 00:10:19 -0800 (PST) (envelope-from gnats) Date: Wed, 17 Mar 2004 00:10:19 -0800 (PST) Message-Id: <200403170810.i2H8AJnq054570@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 08:10:19 -0000 The following reply was made to PR misc/64111; it has been noted by GNATS. From: Gleb Smirnoff To: Pat Wendorf Cc: freebsd-gnats-submit@freebsd.org Subject: Re: misc/64111: libfetch does not use the FTP_PROXY and HTTP_PROXY vars as documented Date: Wed, 17 Mar 2004 11:07:59 +0300 On Thu, Mar 11, 2004 at 08:31:21AM -0800, Pat Wendorf wrote: P> >Description: P> The documentation for fetch (man 3 fetch) indicates that setting HTTP_PROXY will only let fetch requests for HTTP resources run through the proxy server. We have a setup where FTP is open to us, but HTTP is proxied. With this variable set HTTP and FTP seem to go through the proxy first. Unsetting the variable fixes FTP, but does not allow me to us HTTP. P> >How-To-Repeat: P> Allow FTP out through your network, and proxy HTTP. Set the HTTP_PROXY environment variable and watch where the FTP requests go out through. This is not a bug, its a feature. libfetch tries to use you HTTP proxy for FTP transfers, too. If you don't want to use it for FTP, you have explicitly set environment variable FTP_PROXY to empty string. A command like: > FTP_PROXY= fetch will work in your case. If you are using make.conf, your configuration will look like this: FETCH_ENV?= HTTP_PROXY=proxy:3128 FETCH_ENV+= FTP_PROXY= However, fetch.3 says: If this variable is set to an empty string, no proxy will be used for FTP requests, even if the HTTP_PROXY variable is set. And this is definitely not true. So, this issue must be considered a doc-bug. Here is diff: --- fetch.3.orig Wed Mar 17 11:05:32 2004 +++ fetch.3 Wed Mar 17 11:07:08 2004 @@ -471,11 +471,6 @@ is the real user name, and .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 -.Ev HTTP_PROXY -variable is set. .It Ev ftp_proxy Same as .Ev FTP_PROXY , -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE