X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=A2uTxhcNtE0hvamsm3kXEnCLSsMye50ytz7Qh9qaXd7FO/4PnzRwM MckAR+khLwAcpO0R4IDs7+wG748PqtM9kavHNEGisfBmWicRVzx82h7xuHxTlbyh yg6GbkvSrj+2nvejUglqbOOYrS6SKJTfD7FQ/YNgQZoa9pRWlAdwoE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=pIl0kEy3MguUOvQ1q5Jj1sEtPXI=; b=s6xOMsyGisUPa6hmP2FAingktruD B0yU6BgAUG52rNyMdWOoXai692wxeZQRBSG5rAVxmuXowxNamSUFdbXSGy/wK0jp MG8L+uEWrtzqgZGaM/2420k6PTZE6oBKP5x6BQv8oLyAhc/dxUnfC7Pj6RsDlaN2 z5o3k6L+b54I91g= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-103.3 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=Houder, houder, H*F:D*cygwin.com X-HELO: mout.kundenserver.de Date: Tue, 26 Mar 2019 12:23:49 +0100 From: Corinna Vinschen To: Houder Cc: cygwin AT cygwin DOT com Subject: Re: Regression: errno returned by seteuid and companions incorrect Message-ID: <20190326112349.GJ3471@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Houder , cygwin AT cygwin DOT com References: <335088cba5612a90e55af23f2a93e57b AT xs4all DOT nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5cSRzy0VGBWAML+b" Content-Disposition: inline In-Reply-To: <335088cba5612a90e55af23f2a93e57b@xs4all.nl> User-Agent: Mutt/1.11.3 (2019-02-01) --5cSRzy0VGBWAML+b Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 26 10:55, Houder wrote: > [...] > 1538 if (status !=3D STATUS_SUCCESS) > 1539 { > 1540 debug_printf ("%s: %y", logon ? "LsaRegisterLogonProcess" > 1541 : "LsaConnectUntrusted", status); > // Henri: HACK! > // LsaRegisterLogonProcess returns STATUS_PORT_CONNECTION_REFU= SED > if (status =3D=3D STATUS_PORT_CONNECTION_REFUSED) // > ((NTSTATUS)0xC0000041) > // =3D> EACCES .= .. > WRONG! > { > // status that was previously returned by NtCreateToken > status =3D STATUS_PRIVILEGE_NOT_HELD; // ((NTSTATUS)0xC000= 0061) > =3D> 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 --=20 Corinna Vinschen Cygwin Maintainer --5cSRzy0VGBWAML+b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyaC8UACgkQ9TYGna5E T6AkOhAAm9PH0tWkSBn9h/sLlbyt8KYPw5eXUBPyBkneuTm8ZIJt4jJ+18nJua/i v4kwJfNoYxqLCouGbNeO3kAIPcvLRDI5IG5BQ/JvUq2zUCnzLgWGnIwijTnDzJJw 3FOIVMRoCIbvtSVM58pqTU5P4K4Md3ag3TBzEJbQUpBHfOuaTJm7lc5FmuZvrsfB QjFz7blFA5mLKecEkNK76FJn1H/SpGIpn3RT9y7YMbUyGPdtSPUlMxtBB1USX4dk HdOMabPBES4lrvI+a1mrIAQhTVPbIGb+i/mjSOaOazVznnnihKI0fjm3sfd+hcq3 quHxfd9rpwshhzOhBXmcyBvcc7bovgWpKqmNj6e2N2x1JPBKNcvF17EdBzQ+2t2t ZlOQClz8noD+mUSjNwhNc9aB+uRraz/9VTgP2eRwLXgYGr2vKItOJ0pJtG2ezt6p MwVkBKLA40VNqPdcNQhB7UIwUMhytZxvHjtz6aCHMXKk5SwD/AvptNkqbABziu8B 1fxfzsRmvj5nJkbjL2IIsvUJ9xUG2DSc2hgyiBXaGEOEggJuLDZ9FzW5sxVW6OSt qf4JTYCRcYLM38LBUXlzAef9rnKsJjD8S5yDxXdZVLf3jwaow7nXHGgfA5mW89Gz cbU7TaJdN2WmyXz+NLR5m8DuTy43Io3UihseJ/nPgvVZwC0I7V8= =7De0 -----END PGP SIGNATURE----- --5cSRzy0VGBWAML+b--