About bug 486 - wget - Can't reproduce

Rob Landley rob at landley.net
Sun Dec 18 20:30:24 UTC 2005

On Sunday 18 December 2005 05:44, Tito wrote:
> Original bug report:
>  0000486: busybox wget prepends a '/' to ftp URL's pathname, unlike GNU
> wget Description  busybox 1.01 "wget ftp://host/path/file" [^] sends the
> string "RETR /path/file" to the FTP server. But the regular GNU wget(1) it
> is imitating would send "RETR path/file", a relative path to the home
> directory. The URL must be "ftp://host//path/file" [^] for GNU wget to
> fetch the absolute filepath.
> Mozilla, and even IE do as GNU wget.
> Looking at the source, the leading '/' is hard coded into wget.
> patch attached.

I don't see any attachments.

> However fixing this will break any busybox users dependant on the current
> behavior. (then again, not fixing it means busybox wget is not behaving
> like GNU wget and cannot support relative paths)

I'm not worried about that.  Working with relative paths is correct.

We recently fixed ftpget to handle this correctly.  During 1.2 the code for 
wget and ftpget should probably be merged somehow.  For now, a patch is good.


Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.

More information about the busybox mailing list