Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
bzip2.12067
bzip2-ocloexec.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bzip2-ocloexec.patch of Package bzip2.12067
--- bzlib.c.orig +++ bzlib.c @@ -1414,7 +1414,15 @@ BZFILE * bzopen_or_bzdopen } mode++; } - strcat(mode2, writing ? "w" : "r" ); + + /* open fds with O_CLOEXEC _only_ when we are the initiator + * aka. bzopen() but not bzdopen() */ + if(open_mode == 0) { + strcat (mode2, writing ? "we" : "re" ); + } else { + strcat(mode2, writing ? "w" : "r" ); + } + strcat(mode2,"b"); /* binary mode */ if (open_mode==0) {
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