[BusyBox] ftpput / ftpget applets for 0.60.5

Glenn McGrath bug1 at optushome.com.au
Thu Dec 12 02:28:03 UTC 2002


On Wed, 11 Dec 2002 10:26:28 -0500
Jeff Angielski <jeff at theptrgroup.com> wrote:

> 
> Here is a patch for two new applets, ftpput and ftpget.  They are very
> simple implementations that allow a user to upload and download a file
> via FTP.
> 

Initially i thought this wasnt needed as it duplicates the functionality
of wget.

The same thing result could be achieved by #define out the http stuff from
wget.c and only have ftp left.

Looking into it further i think its better to have smaller descrete
commands (such as ftpget/ftpput) merged into more functional commands like
wget.

There is a lot of common code between your ftpget.c/ftpput.c/wget.c wget,
i reoganised your patch into one ftpgetput.c with functions that could
simply replace wget code.

> Users beware, I have not done much testing with the -c,--continue option
> for ftpget so use that option at your own risk.  :)
> 

I havent actually replaced any wget code with this patch, and -c is
broken, so its not finished yet.

It is using a copyfd_chunk.c which is in between copyfd and
copy_file_chunk, some functionality needs to be merged between those.

Its quite a bit smaller, the current patch is at

http://people.debian.org/~bug1/busybox.ftpgetput.diff.gz



Glenn



More information about the busybox mailing list