Re: [PATCH] Cygwin: Allow to set SO_PEERCRED zero (v2)

2020-12-08 Thread Corinna Vinschen via Cygwin-patches
On Dec 8 10:47, Corinna Vinschen via Cygwin-patches wrote: > Hi Mark, > > On Dec 7 19:25, Mark Geisert wrote: > > Hi Corinna, > > > > Corinna Vinschen via Cygwin-patches wrote: > > > On Dec 7 16:30, Corinna Vinschen via Cygwin-patches wrote: > > > > On Dec 7 02:29, Mark Geisert wrote: > > >

Re: [PATCH] Cygwin: Allow to set SO_PEERCRED zero (v2)

2020-12-08 Thread Corinna Vinschen via Cygwin-patches
Hi Mark, On Dec 7 19:25, Mark Geisert wrote: > Hi Corinna, > > Corinna Vinschen via Cygwin-patches wrote: > > On Dec 7 16:30, Corinna Vinschen via Cygwin-patches wrote: > > > On Dec 7 02:29, Mark Geisert wrote: > > > > The existing code errors as EINVAL any attempt to set a value for > > > >

Re: [PATCH] Cygwin: Allow to set SO_PEERCRED zero (v2)

2020-12-07 Thread Corinna Vinschen via Cygwin-patches
On Dec 7 16:30, Corinna Vinschen via Cygwin-patches wrote: > On Dec 7 02:29, Mark Geisert wrote: > > 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

Re: [PATCH] Cygwin: Allow to set SO_PEERCRED zero (v2)

2020-12-07 Thread Corinna Vinschen via Cygwin-patches
On Dec 7 02:29, Mark Geisert wrote: > 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] Cygwin: Allow to set SO_PEERCRED zero (v2)

2020-12-07 Thread Mark Geisert
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

Re: [PATCH] Cygwin: Allow to set SO_PEERCRED zero

2020-12-07 Thread Corinna Vinschen via Cygwin-patches
Hi Mark, On Dec 6 22:28, Mark Geisert wrote: > 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.

[PATCH] Cygwin: Allow to set SO_PEERCRED zero

2020-12-06 Thread Mark Geisert
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