bin/83278: libfetch does one big CWD for FTP URLs rather than multipe CWD commands

John Baldwin jhb at FreeBSD.org
Mon Jul 11 18:00:31 GMT 2005


>Number:         83278
>Category:       bin
>Synopsis:       libfetch does one big CWD for FTP URLs rather than multipe CWD commands
>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:30 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     John Baldwin
>Release:        4.8-RELEASE
>Organization:
>Environment:
>Description:
RFC 1738 specifies that clients should do a CWD command for each '/' separated item in a path except for the last one which should be retrieved using RETR or NLIST.  Thus, ftp://foo/bar/baz/blah should result in 'CWD bar ; CWD baz ; RETR blah'.  Instead, libfetch does 'CWD /bar/baz ; RETR 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)
 


More information about the freebsd-bugs mailing list