diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-11 12:36:10 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-11 12:36:10 +0100 |
commit | a3aa3e309506ea96fa8f7546f6b22fa85263a934 (patch) | |
tree | cd6d4adeafec55e230e2d56499df8f0c3cbf47e1 /networking/ftpgetput.c | |
parent | 4662de0511487b4da965c4b2158bae318f3d80a8 (diff) | |
download | busybox-w32-a3aa3e309506ea96fa8f7546f6b22fa85263a934.tar.gz busybox-w32-a3aa3e309506ea96fa8f7546f6b22fa85263a934.tar.bz2 busybox-w32-a3aa3e309506ea96fa8f7546f6b22fa85263a934.zip |
wget: check for close success; fix chunked; do not bother to send QUIT to ftp
Also, random fixes to use %u for unsigned quantities. -14 bytes in wget.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index c0ecddac1..2dd7e9232 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -212,7 +212,7 @@ int ftp_receive(const char *local_path, char *server_path) | |||
212 | } | 212 | } |
213 | 213 | ||
214 | if (do_continue) { | 214 | if (do_continue) { |
215 | sprintf(buf, "REST %"OFF_FMT"d", beg_range); | 215 | sprintf(buf, "REST %"OFF_FMT"u", beg_range); |
216 | if (ftpcmd(buf, NULL) != 350) { | 216 | if (ftpcmd(buf, NULL) != 350) { |
217 | do_continue = 0; | 217 | do_continue = 0; |
218 | } | 218 | } |