summaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.18.3/busybox-1.18.3-wget.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-03-13 21:08:26 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2011-03-13 21:08:26 +0100
commit27c152db06d018f120e2da50fa982bbd6dedfd71 (patch)
treedfad66bce266b7fe4587f9e92d3923480ba819f1 /package/busybox/busybox-1.18.3/busybox-1.18.3-wget.patch
parent707dc469aa4f51a85a62b2587ac57ef2a4db7873 (diff)
downloadbuildroot-novena-27c152db06d018f120e2da50fa982bbd6dedfd71.tar.gz
buildroot-novena-27c152db06d018f120e2da50fa982bbd6dedfd71.zip
busybox: bump 1.18.x stable version
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.18.3/busybox-1.18.3-wget.patch')
-rw-r--r--package/busybox/busybox-1.18.3/busybox-1.18.3-wget.patch69
1 files changed, 0 insertions, 69 deletions
diff --git a/package/busybox/busybox-1.18.3/busybox-1.18.3-wget.patch b/package/busybox/busybox-1.18.3/busybox-1.18.3-wget.patch
deleted file mode 100644
index c7ea7365d..000000000
--- a/package/busybox/busybox-1.18.3/busybox-1.18.3-wget.patch
+++ /dev/null
@@ -1,69 +0,0 @@
---- busybox-1.18.3/networking/wget.c
-+++ busybox-1.18.3-wget/networking/wget.c
-@@ -446,7 +446,7 @@ static FILE* prepare_ftp_session(FILE **
-
- static void NOINLINE retrieve_file_data(FILE *dfp, int output_fd)
- {
-- char buf[512];
-+ char buf[4*1024]; /* made bigger to speed up local xfers */
- #if ENABLE_FEATURE_WGET_STATUSBAR || ENABLE_FEATURE_WGET_TIMEOUT
- # if ENABLE_FEATURE_WGET_TIMEOUT
- unsigned second_cnt;
-@@ -506,8 +506,11 @@ static void NOINLINE retrieve_file_data(
- G.transferred += n;
- progress_meter(PROGRESS_BUMP);
- #endif
-- if (G.got_clen)
-+ if (G.got_clen) {
- G.content_len -= n;
-+ if (G.content_len == 0)
-+ break;
-+ }
- }
-
- if (!G.chunked)
-@@ -706,6 +709,11 @@ int wget_main(int argc UNUSED_PARAM, cha
- fprintf(sfp, "Host: %s\r\nUser-Agent: %s\r\n",
- target.host, user_agent);
-
-+ /* Ask server to close the connection as soon as we are done
-+ * (IOW: we do not intend to send more requests)
-+ */
-+ fprintf(sfp, "Connection: close\r\n");
-+
- #if ENABLE_FEATURE_WGET_AUTHENTICATION
- if (target.user) {
- fprintf(sfp, "Proxy-Authorization: Basic %s\r\n"+6,
-@@ -719,22 +727,25 @@ int wget_main(int argc UNUSED_PARAM, cha
-
- if (G.beg_range)
- fprintf(sfp, "Range: bytes=%"OFF_FMT"u-\r\n", G.beg_range);
-+
- #if ENABLE_FEATURE_WGET_LONG_OPTIONS
- if (extra_headers)
- fputs(extra_headers, sfp);
-
- if (opt & WGET_OPT_POST_DATA) {
- char *estr = URL_escape(post_data);
-- fprintf(sfp, "Content-Type: application/x-www-form-urlencoded\r\n");
-- fprintf(sfp, "Content-Length: %u\r\n" "\r\n" "%s",
-- (int) strlen(estr), estr);
-- /*fprintf(sfp, "Connection: Keep-Alive\r\n\r\n");*/
-- /*fprintf(sfp, "%s\r\n", estr);*/
-+ fprintf(sfp,
-+ "Content-Type: application/x-www-form-urlencoded\r\n"
-+ "Content-Length: %u\r\n"
-+ "\r\n"
-+ "%s",
-+ (int) strlen(estr), estr
-+ );
- free(estr);
- } else
- #endif
-- { /* If "Connection:" is needed, document why */
-- fprintf(sfp, /* "Connection: close\r\n" */ "\r\n");
-+ {
-+ fprintf(sfp, "\r\n");
- }
-
- fflush(sfp);