diff --git a/networking/wget.c b/networking/wget.c index 6c1aa74b7..64cdf6220 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -6,27 +6,12 @@ * */ -#include +#include "busybox.h" #include -#include -#include -#include -#include -#include -#include #include #include - -#include -#include -#include -#include -#include -#include - #include -#include "busybox.h" struct host_info { char *host; @@ -458,13 +443,12 @@ read_response: close_delete_and_die("ftp login: %s", buf+4); } - ftpcmd("CDUP", NULL, sfp, buf); ftpcmd("TYPE I", NULL, sfp, buf); /* * Querying file size */ - if (ftpcmd("SIZE /", target.path, sfp, buf) == 213) { + if (ftpcmd("SIZE ", target.path, sfp, buf) == 213) { unsigned long value; if (safe_strtoul(buf+4, &value)) { close_delete_and_die("SIZE value is garbage"); @@ -496,7 +480,7 @@ read_response: filesize -= beg_range; } - if (ftpcmd("RETR /", target.path, sfp, buf) > 150) + if (ftpcmd("RETR ", target.path, sfp, buf) > 150) close_delete_and_die("RETR: %s", buf+4); }