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:
Denys Vlasenko
2009-12-11 12:36:10 +01:00
parent 4662de0511
commit a3aa3e3095
6 changed files with 40 additions and 36 deletions

View File

@@ -336,7 +336,7 @@ static int writeTarHeader(struct TarBallInfo *tbInfo,
&& statbuf->st_size > (off_t)0777777777777LL
) {
bb_error_msg_and_die("can't store file '%s' "
"of size %"OFF_FMT"d, aborting",
"of size %"OFF_FMT"u, aborting",
fileName, statbuf->st_size);
}
header.typeflag = REGTYPE;