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

bugs at busybox.net bugs at busybox.net
Sat Sep 30 20:20:05 UTC 2006


The following issue has been CLOSED 
====================================================================== 
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:                     closed
Resolution:                 fixed
Fixed in Version:           1.2.x
====================================================================== 
Date Submitted:             10-15-2005 15:37 PDT
Last Modified:              09-30-2006 13:20 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)
====================================================================== 

---------------------------------------------------------------------- 
 vda - 09-30-06 12:40  
---------------------------------------------------------------------- 
Already seems to be fixed 

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                    
09-30-06 12:40  vda            Status                   assigned => resolved
09-30-06 12:40  vda            Fixed in Version          => 1.2.x           
09-30-06 12:40  vda            Resolution               open => fixed       
09-30-06 12:40  vda            Note Added: 0001665                          
09-30-06 13:20  vda            Status                   resolved => closed  
======================================================================




More information about the busybox-cvs mailing list