Accepting request 415615 from home:jmoellers:branches:network:utilities

- Save/restore errno within CLOSE_FINISH and CLOSE_INVALIDATE.
  (wget-errno-clobber.patch, boo#983660)

OBS-URL: https://build.opensuse.org/request/show/415615
OBS-URL: https://build.opensuse.org/package/show/network:utilities/wget?expand=0&rev=62
This commit is contained in:
Reinhard Max 2016-07-29 08:22:59 +00:00 committed by Git OBS Bridge
parent e9e71874a8
commit 93aa9f5113
3 changed files with 38 additions and 0 deletions

30
wget-errno-clobber.patch Normal file
View File

@ -0,0 +1,30 @@
Index: wget-1.18/src/http.c
===================================================================
--- wget-1.18.orig/src/http.c
+++ wget-1.18/src/http.c
@@ -1516,6 +1516,7 @@ persistent_available_p (const char *host
active, registered connection". */
#define CLOSE_FINISH(fd) do { \
+ int errno_sav = errno; \
if (!keep_alive) \
{ \
if (pconn_active && (fd) == pconn.socket) \
@@ -1524,14 +1525,17 @@ persistent_available_p (const char *host
fd_close (fd); \
fd = -1; \
} \
+ errno = errno_sav; \
} while (0)
#define CLOSE_INVALIDATE(fd) do { \
+ int errno_sav = errno; \
if (pconn_active && (fd) == pconn.socket) \
invalidate_persistent (); \
else \
fd_close (fd); \
fd = -1; \
+ errno = errno_sav; \
} while (0)
struct http_stat

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 28 15:37:37 UTC 2016 - josef.moellers@suse.com
- Save/restore errno within CLOSE_FINISH and CLOSE_INVALIDATE.
(wget-errno-clobber.patch, boo#983660)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 22 12:34:02 UTC 2016 - dimstar@opensuse.org Fri Jul 22 12:34:02 UTC 2016 - dimstar@opensuse.org

View File

@ -32,6 +32,7 @@ Patch1: wget-libproxy.patch
Patch6: wget-1.14-no-ssl-comp.patch Patch6: wget-1.14-no-ssl-comp.patch
# PATCH-FIX-OPENSUSE fix pod syntax for perl 5.18 coolo@suse.de # PATCH-FIX-OPENSUSE fix pod syntax for perl 5.18 coolo@suse.de
Patch7: wget-fix-pod-syntax.diff Patch7: wget-fix-pod-syntax.diff
Patch8: wget-errno-clobber.patch
BuildRequires: automake BuildRequires: automake
BuildRequires: gpgme-devel >= 0.4.2 BuildRequires: gpgme-devel >= 0.4.2
BuildRequires: libcares-devel BuildRequires: libcares-devel
@ -77,6 +78,7 @@ This can be done in script files or via the command line.
%endif %endif
%patch6 %patch6
%patch7 -p1 %patch7 -p1
%patch8 -p1
%build %build
%if 0%{?suse_version} > 1110 %if 0%{?suse_version} > 1110