Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2005 17:56:18 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/83278: libfetch does one big CWD for FTP URLs rather than multipe CWD commands
Message-ID:  <200507111756.j6BHuINU016777@www.freebsd.org>
Resent-Message-ID: <200507111800.j6BI0UmP061320@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507111756.j6BHuINU016777>