From owner-cvs-all@FreeBSD.ORG Tue Aug 9 03:32:30 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FA5B16A41F; Tue, 9 Aug 2005 03:32:30 +0000 (GMT) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1CA043D45; Tue, 9 Aug 2005 03:32:29 +0000 (GMT) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j793WTUo077455; Tue, 9 Aug 2005 03:32:29 GMT (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j793WTUP077454; Tue, 9 Aug 2005 03:32:29 GMT (envelope-from cperciva) Message-Id: <200508090332.j793WTUP077454@repoman.freebsd.org> From: Colin Percival Date: Tue, 9 Aug 2005 03:32:29 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.sbin/portsnap/phttpget phttpget.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2005 03:32:30 -0000 cperciva 2005-08-09 03:32:29 UTC FreeBSD src repository Modified files: usr.sbin/portsnap/phttpget phttpget.c Log: When parsing the HTTP_PROXY environment variable, strip a trailing / from the port number (if any exists). This unbreaks env HTTP_PROXY="http://localhost:3128/" portsnap fetch While I'm here, list both the host and the port in the error message output if getaddrinfo() fails, since either of them could be responsible for the failure. Revision Changes Path 1.2 +5 -1 src/usr.sbin/portsnap/phttpget/phttpget.c