Bug 7051 - Install program fails to put leading / in FTP CWD command
Summary: Install program fails to put leading / in FTP CWD command
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: i386 (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-06-24 19:00 UTC by cmetz
Modified: 1998-06-25 23:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cmetz 1998-06-24 19:00:01 UTC
The install program translates a FTP URL of
"ftp://132.250.90.8/home/FreeBSD"
to
"CWD home/FreeBSD"
Since the FTP daemon drops the user in his home directory, the CWD
doesn't get him where he's trying to go. We kluged it with a URL of
"ftp://132.250.90.8/../FreeBSD"
This is not necessarily FreeBSD's fault; the URL syntax and user
misconceptions of it is the real problem.
Comment 1 Poul-Henning Kamp freebsd_committer freebsd_triage 1998-06-25 08:25:22 UTC
State Changed
From-To: open->closed

broken as designed I think.  putting a leading slash there would seem 
to be an error to me. 

Comment 2 cmetz 1998-06-25 20:45:27 UTC
In message <199806252039.NAA14777@mango.parc.xerox.com>, you write:
>In fact, according to RFC1738, the way to request a leading / in a
>CWD is to start the URL with %2F, e.g. ftp://132.250.90.8/%2Fhome/FreeBSD .
>
>Perhaps this should be documented in the ftp install help.

  Since this would be a reasonably frequently wanted thing when doing a non-
anonymous FTP of the install sets, it would be nice if this were documented
somewhere or a one-line reminder was around the prompt window.

									-Craig
Comment 3 fenner 1998-06-25 21:39:33 UTC
In fact, according to RFC1738, the way to request a leading / in a
CWD is to start the URL with %2F, e.g. ftp://132.250.90.8/%2Fhome/FreeBSD .

Perhaps this should be documented in the ftp install help.

  Bill
Comment 4 Jordan K. Hubbard 1998-06-25 23:12:53 UTC
> The install program translates a FTP URL of
> "ftp://132.250.90.8/home/FreeBSD"
> to
> "CWD home/FreeBSD"
> Since the FTP daemon drops the user in his home directory, the CWD
> doesn't get him where he's trying to go. We kluged it with a URL of
> "ftp://132.250.90.8/../FreeBSD"

Erm, I think this really is the expected behavior.  If you're
specifying an ftp://foo.bar/pub/baz URL, it's implicit that you're
saying "relative to the anonymous FTP user" for pub/baz and this
certainly works everywhere else. :)  Unless you can really point out
how changing this would not be a bug in and of itself, I will close
this PR.

Regards,

- Jordan