From obrien@dragon.nuxi.com  Wed Feb  4 08:59:15 1998
Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [128.120.56.38])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA16128
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 4 Feb 1998 08:59:12 -0800 (PST)
          (envelope-from obrien@dragon.nuxi.com)
Received: from dragon.nuxi.com (d60-090.leach.ucdavis.edu [169.237.60.90]) by relay.nuxi.com (8.8.7/8.6.12) with ESMTP id IAA26836 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 4 Feb 1998 08:59:00 -0800 (PST)
Received: (from obrien@localhost) by dragon.nuxi.com (8.8.8/8.7.3) id QAA25273; Wed, 4 Feb 1998 16:58:46 GMT
Message-Id: <199802041658.QAA25273@dragon.nuxi.com>
Date: Wed, 4 Feb 1998 16:58:46 GMT
From: "David O'Brien" <obrien@NUXI.com>
Reply-To: obrien@NUXI.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: fetch(1) doesn't CD properly on FTPs
X-Send-Pr-Version: 3.2

>Number:         5651
>Category:       bin
>Synopsis:       fetch(1) doesn't CD properly on FTPs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    fenner
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb  4 09:00:02 PST 1998
>Closed-Date:    Mon Oct 26 11:23:13 PST 1998
>Last-Modified:  Mon Oct 26 11:23:44 PST 1998
>Originator:     David O'Brien
>Release:        FreeBSD 2.2.5-STABLE i386
>Organization:
University of California, Davis
>Environment:

	2.2.5-STABLE from 30th Jan 1998

>Description:

	this URL isn't handled correctly:

	ftp://foo.bar.com/home/obrien/somefile

	Fetch does "Sending: CWD home" rather than "Sending: CWD /home" as
	it should.  Thus `somefile' isn't found.  The URL
	ftp://foo.bar.com/somefile must be used, which doesn't
	seem right.
	

>How-To-Repeat:

	fetch -v ftp://freefall.freebsd.org/home/`whoami`/.profile

>Fix:
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Wed Feb 4 09:34:50 PST 1998 
State-Changed-Why:  
Fetch's behavior is correct according to the standard.  If the user wants 
to include a literal slash character, it must be %-encoded; i.e., 
ftp://foo.bar.com/%2fhome/obrien/somefile 
State-Changed-From-To: closed->open 
State-Changed-By: obrien 
State-Changed-When: Wed Feb 4 09:38:11 PST 1998 
State-Changed-Why:  
%-encoded + example should be documented in manpage. 
Responsible-Changed-From-To: freebsd-bugs->fenner 
Responsible-Changed-By: fenner 
Responsible-Changed-When: Wed Feb 4 09:47:09 PST 1998 
Responsible-Changed-Why:  
I made the change and forgot to document it. 
State-Changed-From-To: open->closed 
State-Changed-By: fenner 
State-Changed-When: Mon Oct 26 11:23:13 PST 1998 
State-Changed-Why:  
Documentation fixed in rev 1.21 of fetch.1 
>Unformatted:
