Bug 21856

Summary: The FTP installer sends useless "CWD ." - creates problems with some ftp servers
Product: Base System Reporter: vstanescu <vstanescu>
Component: confAssignee: Murray Stokely <murray>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1.1-RELEASE   
Hardware: Any   
OS: Any   

Description vstanescu 2000-10-09 10:50:01 UTC
The ftp installation of freebsd 4.1.1-release sends the following
sequences when entering the freebsd directory on the ftp server:
CWD <user_specified_path>
CWD .
CWD 4.1.1-RELEASE

The "CWD ." is useless (it does practically nothing) and has the following
problem:
- with some ftp servers (like publicfile for example) the . and .. are
hidden and not permited to the user, so it just gives errors like
"file not found" when trying this.

As this CWD . is not a usefull command, i think there should be no problem
in removing it, and this would help users of non-standard (bsd/wu ftpd) 
ftp servers.

The problem was not present in 4.1-RELEASE

Fix: 

Remove the "CWD .", as this is an useless command.
How-To-Repeat: install 4.1.1-RELEASE
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2000-10-15 13:20:50 UTC
Responsible Changed
From-To: freebsd-bugs->murray

Over to sysinstall maintainer.
Comment 2 Murray Stokely freebsd_committer freebsd_triage 2001-03-14 10:08:26 UTC
State Changed
From-To: open->closed

This has been fixed with revision 1.43 of ftp.c in sysinstall.  This is 
currently only in FreeBSD -current but I will add it to -stable after 
4.3-RELEASE.