From nobody@FreeBSD.org  Wed Jul 27 09:02:51 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AFF5B16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Jul 2005 09:02:51 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6A01043DAF
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Jul 2005 09:02:51 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j6R92ohr049777
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Jul 2005 09:02:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j6R92oZd049776;
	Wed, 27 Jul 2005 09:02:50 GMT
	(envelope-from nobody)
Message-Id: <200507270902.j6R92oZd049776@www.freebsd.org>
Date: Wed, 27 Jul 2005 09:02:50 GMT
From: Jakob Breivik Grimstveit <jakob.grimstveit@starshipping.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: fetch uses http_proxy for ftp url's
X-Send-Pr-Version: www-2.3

>Number:         84161
>Category:       bin
>Synopsis:       fetch uses http_proxy for ftp url's
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 27 09:10:19 GMT 2005
>Closed-Date:    Fri Jul 29 21:59:16 GMT 2005
>Last-Modified:  Fri Jul 29 21:59:16 GMT 2005
>Originator:     Jakob Breivik Grimstveit
>Release:        5.4
>Organization:
Star Shipping
>Environment:
FreeBSD nusse.starshipping.com 5.4-RELEASE-p3 FreeBSD 5.4-RELEASE-p3 #14: Wed Jul  6 05:26:14 CEST 2005     root@nusse.starshipping.com:/usr/obj/usr/src/sys/NUSSE  i386

>Description:
fetch seems to use environment variable http_proxy even though it is going to fetch a file via ftp:

[jakobbg@nusse ~]$ set | grep proxy
http_proxy=http://proxy.starshipping.com:8118/

[jakobbg@nusse ~]$ fetch ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.001
fetch: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.001: Not Found

[jakobbg@nusse ~]$ wget ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.001 
--11:00:54--  ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.001
           => `6.3.001'
Resolving ftp.vim.org... 192.87.102.36
Connecting to ftp.vim.org|192.87.102.36|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/vim/patches/6.3 ... done.
==> PASV ... done.    ==> RETR 6.3.001 ... done.
Length: 2,672 (2.6K) (unauthoritative)

100%[====================================>] 2,672         --.--K/s             

11:00:54 (203.76 KB/s) - `6.3.001' saved [2672]
>How-To-Repeat:
Set http_proxy to a false hostname and try to fetch an FTP URI.
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Fri Jul 29 21:58:11 GMT 2005 
State-Changed-Why:  
Documented in the fetch(3) manpage.  If you don't want this 
behaviour, set the FTP_PROXY variable to an empty string. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84161 
>Unformatted:
