delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/16/05:21:16

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:message-id:from:reply-to:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=jy7g29
C4n4Y25f64B2mkfdlIqa6Wi2kUbWubRZ73YtMbcrYPv4uSdSvzWCeW84Omz8s6DC
dB2mxXzQGe+DIqBNbfJTqbAICwC5m4jyoSqgN9C6WA/d2/fDTNVrLlJ2TtYJdQwM
cY3OU0hbF49t+4Ay8Pq8A3GgTNY4AWAVRVrSU=
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:message-id:from:reply-to:to:subject
:references:in-reply-to:content-type; s=default; bh=q2rEr9//yw/n
yQbl+ZrjlmcFC8U=; b=ACcTKyws9212jvgKvyzpdsa9ENGWZFQJBH23vzXX2k9S
al++nSPjiJbOCipLrlxgHFw3EkrwlHnhMz6W2xBMoY58D9P1IqHGijTmp51ifq4P
TwuhgsE9DeLkOmX37pI8dkXPNWBV2YB35lMp1nJIv4aHzgSaMxgh0KPCudX2jug=
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=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=2nd, H*F:D*nl, device, interest
X-HELO: lb2-smtp-cloud9.xs4all.net
Date: Sat, 16 Mar 2019 10:20:59 +0100
Message-ID: <51987a7859475523111d48a2e503d8c2@smtp-cloud9.xs4all.net>
From: Houder <houder AT xs4all DOT nl>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: sshd: fatal: seteuid XXX : No such device or address
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> <20190315134247 DOT GR3785 AT calimero DOT vinschen DOT de> <7dcabfa538edb7ed869b8b26205aeee9 AT smtp-cloud7 DOT xs4all DOT net> <20190315204122 DOT GU3785 AT calimero DOT vinschen DOT de>
In-Reply-to: <20190315204122.GU3785@calimero.vinschen.de>
User-Agent: mua.awk 0.99
Note-from-DJ: This may be spam

On Fri, 15 Mar 2019 21:41:22, Corinna Vinschen  wrote:

> On Mar 15 20:39, Houder wrote:

> > On Fri, 15 Mar 2019 14:42:47, Corinna Vinschen  wrote:
[snip]

> > > 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 :)
> >
> > You do! I do not :-) (as I do not have the machinery at my disposal that
> > is required to provoke this error).
> 
> If I'm not mistaken the error occurs for local machine accounts, not for
> domain accounts.  But either way, this problem can only be straced on
> machines which can reproduce the problem and that's usually the machine
> of the OP in the first place.

OP's machine (or equivalent)? Basically, that is what I stated above (i.e.
attempting to state) ...

Error occurs for local machine accounts? Yes, but not at my place! (I did
not see the error (ENXIO) when the sshd problem came up when cygwin 3 was
introduced -- because I "loop back" when using ssh).

> I'm not sure what you're asking for, what do you want to change in
> Cygwin?

To answer the 2nd part of your question: nothing! (even if I was capable
of changing Cygwin).

I can appreciate(?) the complexity of mapping "Linux" to Windows. Simple
enough (?) in case of something like reading/writing a file, because that
concept (general enough to be) is present in both Windows and "Linux".

Totally different in case of seteuid() and companions ...

(Could the error reporting be improved if the Linux system call would be
 a parameter when mapping Windows failure codes to "Linux" error codes?
 I believe that would be very, very troublesome)

To answer the 1st part of your question ...

.. well, I had hoped that you had seen what Windows function had caused
the "No such device or address" error message to appear ...
(and was willing to share that info :-).

I know that you were the one that introduced ERROR_FILE_INVALID and made
it map to ENXIO (in 2001 ... good gracious, almost 20 years ago).

Presumably, because of the empty file problem in av::setup(), a function
in winsup/cygwin/spawn.cc.

Error code ENXIO occurs at a very different level (lower) in Linux than
the level where seteuid() and companions live ...

That is why I was wondering? what made seteuid() in Cygwin generate this
error ...

So, basically, my interest comes down to curiosity! (and I assumed that
you had seen the error appear when the sshd problem came up).

End of thread? :-)

Henri

=====


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019