[BusyBox 0000485]: ftpget fetches 0 bytes if ftp server does not support SIZE command

bugs at busybox.net bugs at busybox.net
Tue Jan 10 06:36:25 UTC 2006


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=485 
====================================================================== 
Reported By:                nsd
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   485
Category:                   Networking Support
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             10-15-2005 15:30 PDT
Last Modified:              01-09-2006 22:36 PST
====================================================================== 
Summary:                    ftpget fetches 0 bytes if ftp server does not
support SIZE command
Description: 
busybox 1.01 ftpget issues a SIZE command, and if it fails, falls through
and calls bb_copyfd_size() with filesize = 0. 

The correct behavior would be to disable continuing an interrupted
download, but fetch the file from the start.

wget, btw, does behave correctly.

The ftp server that caused this is the default one shipped with solaris
SunOS 5.8.

patch that fixes this is attached.


====================================================================== 

---------------------------------------------------------------------- 
 landley - 01-09-06 22:36  
---------------------------------------------------------------------- 
svn 13222 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-15-05 15:30  nsd            New Issue                                    
10-15-05 15:30  nsd            Status                   new => assigned     
10-15-05 15:30  nsd            Assigned To               => BusyBox         
10-15-05 15:30  nsd            File Added:
busybox-1.01_ftpget_SIZE_unsupported.patch                    
01-09-06 22:36  landley        Status                   assigned => closed  
01-09-06 22:36  landley        Note Added: 0000906                          
======================================================================




More information about the busybox-cvs mailing list