Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
network:utilities
wget
wget-errno-clobber.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File wget-errno-clobber.patch of Package wget
Index: wget-1.19.2/src/http.c =================================================================== --- wget-1.19.2.orig/src/http.c 2017-10-26 17:30:08.000000000 +0200 +++ wget-1.19.2/src/http.c 2017-10-27 17:59:48.659093393 +0200 @@ -1524,6 +1524,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) \ @@ -1532,14 +1533,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) typedef enum
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor