Regression: errno returned by seteuid and companions incorrect
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Mar 26 11:23:00 GMT 2019
On Mar 26 10:55, Houder wrote:
> [...]
> 1538 if (status != STATUS_SUCCESS)
> 1539 {
> 1540 debug_printf ("%s: %y", logon ? "LsaRegisterLogonProcess"
> 1541 : "LsaConnectUntrusted", status);
> // Henri: HACK!
> // LsaRegisterLogonProcess returns STATUS_PORT_CONNECTION_REFUSED
> if (status == STATUS_PORT_CONNECTION_REFUSED) //
> ((NTSTATUS)0xC0000041)
> // => EACCES ...
> WRONG!
> {
> // status that was previously returned by NtCreateToken
> status = STATUS_PRIVILEGE_NOT_HELD; // ((NTSTATUS)0xC0000061)
> => EPERM
> }
Thanks for the find. Just send the important two lines as git patch to
cygwin-patches with a short commit message why the error code needs
tweaking.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190326/7a2d73df/attachment.sig>
More information about the Cygwin
mailing list