Hello community,

here is the log from the commit of package wget for openSUSE:Factory checked in 
at 2017-09-25 13:54:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/wget (Old)
 and      /work/SRC/openSUSE:Factory/.wget.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "wget"

Mon Sep 25 13:54:16 2017 rev:47 rq:527657 version:1.19.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/wget/wget.changes        2017-03-10 
21:44:34.257212285 +0100
+++ /work/SRC/openSUSE:Factory/.wget.new/wget.changes   2017-09-25 
13:54:20.293703921 +0200
@@ -1,0 +2,7 @@
+Thu Sep 21 06:45:00 UTC 2017 - [email protected]
+
+- Retry http GET when server responds with "416 Requested Range
+  Not Satisfiable" but file is not complete.
+  [boo#1058204, wget-416-but-file-not-complete.patch]
+
+-------------------------------------------------------------------

New:
----
  wget-416-but-file-not-complete.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ wget.spec ++++++
--- /var/tmp/diff_new_pack.ki6TCb/_old  2017-09-25 13:54:22.185437759 +0200
+++ /var/tmp/diff_new_pack.ki6TCb/_new  2017-09-25 13:54:22.185437759 +0200
@@ -34,6 +34,7 @@
 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 @@
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 %build
 %if 0%{?suse_version} > 1110


++++++ wget-416-but-file-not-complete.patch ++++++
Index: wget-1.19.1/src/http.c
===================================================================
--- wget-1.19.1.orig/src/http.c
+++ wget-1.19.1/src/http.c
@@ -3819,6 +3819,16 @@ gethttp (const struct url *u, struct url
     }
 
   if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE
+      && hs->restval < (contlen + contrange))
+    {
+      /* The file was not completely downloaded,
+         yet the server claims the range is invalid.
+         Bail out.  */
+      CLOSE_INVALIDATE (sock);
+      retval = RANGEERR;
+      goto cleanup;
+    }
+  if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE
       || (!opt.timestamping && hs->restval > 0 && statcode == HTTP_STATUS_OK
           && contrange == 0 && contlen >= 0 && hs->restval >= contlen))
     {


Reply via email to