From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 11 18:00:30 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 CCCCA16A41C for ; Mon, 11 Jul 2005 18:00:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52C8043D45 for ; Mon, 11 Jul 2005 18:00:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6BI0U1Q061290 for ; Mon, 11 Jul 2005 18:00:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6BI0U8X061289; Mon, 11 Jul 2005 18:00:30 GMT (envelope-from gnats) Resent-Date: Mon, 11 Jul 2005 18:00:30 GMT Resent-Message-Id: <200507111800.j6BI0U8X061289@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Baldwin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52D3816A41C for ; Mon, 11 Jul 2005 17:52:00 +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 220FB43D48 for ; Mon, 11 Jul 2005 17:52:00 +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 j6BHpxSH016148 for ; Mon, 11 Jul 2005 17:51:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j6BHpxkT016147; Mon, 11 Jul 2005 17:51:59 GMT (envelope-from nobody) Message-Id: <200507111751.j6BHpxkT016147@www.freebsd.org> Date: Mon, 11 Jul 2005 17:51:59 GMT From: John Baldwin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: bin/83277: libfetch includes the leading / in FTP URL paths X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 18:00:30 -0000 >Number: 83277 >Category: bin >Synopsis: libfetch includes the leading / in FTP URL paths >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 11 18:00:29 GMT 2005 >Closed-Date: >Last-Modified: >Originator: John Baldwin >Release: 4.8-RELEASE >Organization: >Environment: >Description: RFC 1738 specifies that the '/' character separating the hostname from the url-path in a FTP url is a separator and should not be treated as a part of the url-path. Thus, ftp://foobar/baz/blah should retrieve the file 'baz/blah', but instead it tries to retrieve the file '/baz/blah'. >How-To-Repeat: > fetch -vv ftp://yyy:zzz@xxx/foo/bar/baz scheme: [ftp] user: [yyy] password: [zzz] host: [xxx] port: [0] document: [/foo/bar/baz] ---> xxx:21 looking up xxx connecting to xxx:21 <<< 220 xxx FTP server (Version 6.00LS) ready. >Fix: >Release-Note: >Audit-Trail: >Unformatted: >>> USER yyy <<< 331 Password required for yyy. >>> PASS zzz <<< 230 User yyy logged in. >>> TYPE I <<< 200 Type set to I. >>> CWD /foo/bar <<< 550 /foo/bar: No such file or directory. fetch: ftp://yyy:zzz@xxx/foo/bar/baz: File unavailable (e.g., file not found, no access)