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>
This commit is contained in:
@ -212,7 +212,7 @@ int ftp_receive(const char *local_path, char *server_path)
|
||||
}
|
||||
|
||||
if (do_continue) {
|
||||
sprintf(buf, "REST %"OFF_FMT"d", beg_range);
|
||||
sprintf(buf, "REST %"OFF_FMT"u", beg_range);
|
||||
if (ftpcmd(buf, NULL) != 350) {
|
||||
do_continue = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user