aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc
diff options
context:
space:
mode:
authorMark Geisert <mark@maxrnd.com>2020-12-07 02:29:36 -0800
committerCorinna Vinschen <corinna@vinschen.de>2020-12-07 16:29:11 +0100
commit9e573ba50f129bff7b6e1be10cf4bbcb70f1efdd (patch)
tree7ee98a06dc82c29e8008511e3fcf9a72434846a9 /newlib/libc
parent58ac5f985c926bfd1b9efbf1a430e826fe3b668c (diff)
downloadnewlib-9e573ba50f129bff7b6e1be10cf4bbcb70f1efdd.zip
newlib-9e573ba50f129bff7b6e1be10cf4bbcb70f1efdd.tar.gz
newlib-9e573ba50f129bff7b6e1be10cf4bbcb70f1efdd.tar.bz2
Cygwin: Allow to set SO_PEERCRED zero (v2)
The existing code errors as EINVAL any attempt to set a value for SO_PEERCRED via setsockopt() on an AF_UNIX/AF_LOCAL socket. But to enable the workaround set_no_getpeereid behavior for Python one has to be able to set SO_PEERCRED to zero. Ergo, this patch. Python has no way to specify a NULL pointer for 'optval'. This v2 of patch allows the original working (i.e., allow NULL,0 for optval,optlen to mean turn off SO_PEERCRED) in addition to the new working described above. The sense of the 'if' stmt is reversed for readability.
Diffstat (limited to 'newlib/libc')
0 files changed, 0 insertions, 0 deletions