[BusyBox 0000486]: busybox wget prepends a '/' to ftp URL's pathname, unlike GNU wget

bugs at busybox.net bugs at busybox.net
Sat Oct 15 22:37:36 UTC 2005


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=486 
====================================================================== 
Reported By:                nsd
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   486
Category:                   Networking Support
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             10-15-2005 15:37 PDT
Last Modified:              10-15-2005 15:37 PDT
====================================================================== 
Summary:                    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 immitating 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.

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-15-05 15:37  nsd            New Issue                                    
10-15-05 15:37  nsd            Status                   new => assigned     
10-15-05 15:37  nsd            Assigned To               => BusyBox         
10-15-05 15:37  nsd            File Added:
busybox-1.01_wget_ftp_should_be_relative_path.patch                    
======================================================================




More information about the busybox-cvs mailing list