From 108986dce7fbca2e8e9256b3ae0527c7a28df0b13b1ecf1b70a9d2e41254c2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20M=C3=B6llers?= Date: Thu, 14 Sep 2017 08:04:20 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/network:utilities/wget?expand=0&rev=71 --- wget-416-but-file-not-complete.patch | 17 +++++++++++++++++ wget.spec | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 wget-416-but-file-not-complete.patch diff --git a/wget-416-but-file-not-complete.patch b/wget-416-but-file-not-complete.patch new file mode 100644 index 0000000..bee2ffd --- /dev/null +++ b/wget-416-but-file-not-complete.patch @@ -0,0 +1,17 @@ +Index: wget-1.19.1/src/http.c +=================================================================== +--- wget-1.19.1.orig/src/http.c ++++ wget-1.19.1/src/http.c +@@ -3818,6 +3818,12 @@ gethttp (const struct url *u, struct url + } + } + ++ if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE) ++ { ++ logputs (LOG_VERBOSE, "hs->restval=%s\n", number_to_string(hs->restval)); ++ logputs (LOG_VERBOSE, "contrange=%s\n", number_to_string(contrange)); ++ logputs (LOG_VERBOSE, "contlen=%s\n\n", number_to_string(contlen)); ++ } + if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE + || (!opt.timestamping && hs->restval > 0 && statcode == HTTP_STATUS_OK + && contrange == 0 && contlen >= 0 && hs->restval >= contlen)) diff --git a/wget.spec b/wget.spec index a992575..8ae3839 100644 --- a/wget.spec +++ b/wget.spec @@ -34,6 +34,7 @@ Patch6: wget-1.14-no-ssl-comp.patch Patch7: wget-fix-pod-syntax.diff Patch8: wget-errno-clobber.patch Patch9: wget-CVE-2017-6508.patch +Patch10: wget-416-but-file-not-complete.patch BuildRequires: automake BuildRequires: gpgme-devel >= 0.4.2 BuildRequires: libcares-devel @@ -81,6 +82,7 @@ This can be done in script files or via the command line. %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build %if 0%{?suse_version} > 1110