delorie.com/archives/browse.cgi | search |
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:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=trlq502OOD7LBciRJMyiViQhvG017BUvUXbwNZZz1lTLKuNqR8pu2 | |
naA4PO1gVsKMLOSXDZAFd2B3i9BMvgOAeaF9Icy9OV24P/hV/sIxC+LFCx+XTUC+ | |
2Eb4LFVYdGO4vOvSwWGfSTTZO+6SELfeL++yxKdBaXGhbkZSduhj8I= | |
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:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=PM0jumGBOLnPrZUf8dFN1U3nhqs=; b=S0Gch+YMH+aWJrwNksHqDDo3ePWw | |
Zx1kA6LzKpTXmusbce7Dzjrp60ka+WAcfbDi7QyHw3EYAv6ZEZlKk0JXKOkjG9ym | |
4Y+Z1zHti0PjoY341xb1kCcYzi1/eF8zSvrSqqkzX8SeVGXjBPxS0DAXRLL0HNul | |
9MrtQitM/h3/t4M= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=-102.5 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:2187, device, H*F:D*cygwin.com, person |
X-HELO: | mout.kundenserver.de |
Date: | Fri, 15 Mar 2019 14:42:47 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: sshd: fatal: seteuid XXX : No such device or address |
Message-ID: | <20190315134247.GR3785@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <011a01d4da5a$96247330$c26d5990$@giraudbtp.com> <e9e7c00dbd22a379d425097a72aab8a1 AT smtp-cloud8 DOT xs4all DOT net> <20190314172918 DOT GJ3785 AT calimero DOT vinschen DOT de> <b54aa3b16b27cb12479f382d1ff30e88 AT smtp-cloud9 DOT xs4all DOT net> |
MIME-Version: | 1.0 |
In-Reply-To: | <b54aa3b16b27cb12479f382d1ff30e88@smtp-cloud9.xs4all.net> |
User-Agent: | Mutt/1.11.3 (2019-02-01) |
Note-from-DJ: | This may be spam |
--w89FjbBIqlQz+8Ov Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 15 14:06, Houder wrote: > On Thu, 14 Mar 2019 18:29:18, Corinna Vinschen wrote: >=20 > > On Mar 14 16:53, Houder wrote: >=20 > > > On Thu, 14 Mar 2019 12:39:30, XXXXX wrote: > > > > Hello the list > [snip] > > > > sshd: PID 3777: fatal: seteuid 1049076: No such device or address >=20 > > > Corinna, > > > > > > As far as I know, seteuid() can either return EINVAL or EPERM in case= of > > > an error. > > > > > > EPERM (=3D3D 1) "Operation not permitted" > > > EINVAL(=3D3D 22) "Invalid argument" > > > > > > "No such device or address" appears to correspond to ENXIO (=3D3D 6)= . Is it > > > sshd, or is it Cygwin, that is confused here? > >=20 > > No confusion as such. The underlying Windows function returns a NT > > status code, which is converted to a Win32 error code by a Windows > > function, and that Win32 error code is converted to a POSIX errno by > > Cygwin. There are much more NT status codes than Win32 error codes, and > > there are much more Win32 error codses than POSIX errno values, so the > > mapping is inevitably unsatisfying. >=20 > .. yes, I am aware of the situation (winsup/cygwin/errno.cc) ... >=20 > However, in the end this kind of error messages is of NOT much use in ord= er > to ascertain what is going on (i.e. what is causing the problem). >=20 > One is forced to create the exact same environment (system) as the person > who is complaining, fire up the debugger (like sticking a thermometer in a > patient's rear end) in order to find out where the code failed ... >=20 > Meaning, within the context of the recent sshd problems, possibly only you > know where the error ERROR_FILE_INVALID (resulting in the error message "= No > such device or address") was generated ... (and by which Windows function= ). The only interface an application has is by checking the POSIX errno value. This is what Cygwin is about :) If you need more details what's going on under the hood, you have to use strace. > Oh well, this cannot be helped ... Well, there *is* a solution by using strace. And hey, we now know what ENXIO returned from seteuid means, don't we? It's not all bad :) Corinna --=20 Corinna Vinschen Cygwin Maintainer --w89FjbBIqlQz+8Ov Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyLq9cACgkQ9TYGna5E T6D1FxAAknrnESl1ob7gA+EYmHZDDOuU6MJu2HwFaHPsLpjIvMEJ2CKIcu/xUjp/ wW3jLRFyxEqhzq0MP9ZJ66mfZsxbb8tpYU8jpcdtJGjkL2UF7NrqhnrtpKtSJSXN MdfupoF83muGhfLx2P7J7uloDXUZyPSMDYYznMWHDAc1jAqgNu9zRpfKrYAz+rXP QtsyiA+eJ0yJZAXZs12+DA+rgldpQbb2FZbxVmlNDFDwvO0vuLq+4Smjg2+49AYy dBF5IxT4k4YXHILoQwCe1FLnx1hIQ/WjoRpAy/7Mgw98cOiC0xMfA7b0u+AVlD9N mY5H6BjzR3plmyQg500f4mCCfXxNijyZyJN0N8BqvL0/0YGlxQb8ypS3g+0y14TK XAvnDeHeS7m6dHdQpHtP8+QwXLrva7F36uKp3V3wm2rS4utUf4RIEtB85O3BAhjq rbExi/SHEAXUbWXHQoIwmL33tjLka1ufqzEOI8gNSV9D9w/uAG4XUzp56b0gByS2 TKDbNfK8xxttyzBlwKzUitLQMSSPIZPdaDsIpGdh6LHnGnnGpklEZZ0UmuiRyNxx nApcmXmykMfG5Vu3nMGAuzvercaTOnxiQfnmUPWFKIErmD4KHfVpdwlvWjMh2IgE FnHWjOGhXcfkE9TzNj911IYqiQAuyQ1XWoT2pJLWvuNoBj4o0pY= =MUcL -----END PGP SIGNATURE----- --w89FjbBIqlQz+8Ov--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |