From owner-freebsd-bugs Wed Oct 1 11:54:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA00829 for bugs-outgoing; Wed, 1 Oct 1997 11:54:40 -0700 (PDT) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA00822 for ; Wed, 1 Oct 1997 11:54:35 -0700 (PDT) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id LAA12877; Wed, 1 Oct 1997 11:54:28 -0700 (PDT) Message-ID: <19971001115428.03021@hydrogen.nike.efn.org> Date: Wed, 1 Oct 1997 11:54:28 -0700 From: John-Mark Gurney To: Garrett Wollman Cc: freebsd-bugs@hub.freebsd.org Subject: Re: bin/4670: /usr/bin/fetch fails to ftp a file ncftp can References: <199710011750.KAA27156@hub.freebsd.org> <199710011828.OAA19756@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <199710011828.OAA19756@khavrinen.lcs.mit.edu>; from Garrett Wollman on Wed, Oct 01, 1997 at 02:28:46PM -0400 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Garrett Wollman scribbled this message on Oct 1: > < said: > > > now the question is, should we simply add a / to the front of the path > > in fetch? > > No. FTP URLs are SUPPOSED to be relative to wherever FTP puts > incoming users. If you want to add a literal `/' to the URL, add > `%2f' at the beginning. (Many URL parsers interpret this > incorrectly... the third slash in an absolute URL is ONLY a separator, > and does not comprise part of the `path' component.) yep... if you add a %2f, fetch will complete successfully.... so would adding a fourth slash to be relative be in spec? or are all repeate slashes suppose to be condensed? because fetch will work if you do: fetch ftp://ftp.fu-berlin.de//pub/... thanks for the clarification on the url's... -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD