X-Recipient: archive-cygwin@delorie.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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=xre6kHtveo9qrCCtAqSk5dyIIO6MWTHrOdkUChossMYz3zeLxx2cg
	mnwpiDR9mPpZ3dHUuyfRNuOsaxUGLi+TNMYzSVdA/a2SV8vx7t2RNnZgBZ2PLP/6
	JFDAsNogM3b5fqOP8qYmL8iRgybTpOGAm9rdWLYXmwe8qJaR7XpbrE=
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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=CvGA59wFPA7HdJvkqAV5a5YN4Fc=; b=o7zYJfHAo6L10q219sKI/Niqmqr4
	b/cOGMYK1JzE2jaFAtOVEVEfgEVLr5WbHsbUU+xZ1kZE8DRVa48qEqS2Yh/ZcNEQ
	cDjI7eR//USnhaxBTSBTYhT2hBpctCohgu08sL1cuwvdqT53qJwfKqzULYZPWlUK
	ctMEQSbkN4nf19k=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 spammy=H*F:D*gov, H*r:Unknown, screen, 201903
X-HELO: blaine.gmane.org
To: cygwin@cygwin.com
From: Andrew Schulman <schulman.andrew@epa.gov>
Subject: Re: Logging-in using ssh elevates the user privilege.
Date: Fri, 08 Mar 2019 12:57:20 -0500
Message-ID: <17b58eds2gm17qs2sjmmbhhrnqka5htm9s@4ax.com>
References: <20190307010000.fc28b73739c2dd66e609982b@nifty.ne.jp> <381052629.20190307141955@yandex.ru> <51233666.20190307182445@yandex.ru> <20190308230138.b7f6b5ac90c9a14cde2647c1@nifty.ne.jp> <20190308141118.GM3785@calimero.vinschen.de> <20190308234638.0ada919bc31803cf064ca720@nifty.ne.jp> <20190308145247.GO3785@calimero.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

> Hi Andrew,
> 
> On Mar  8 23:46, Takashi Yano wrote:
> > Hi Corinna,
> > 
> > Thanks for your advice.
> > 
> > On Fri, 8 Mar 2019 15:11:18 +0100 Corinna Vinschen wrote:
> > > > In Linux, connect() in the client returns befor the
> > > > server calls accept(). However, in cygwin, connect()
> > > > does not return until the server calls accept().
> > > 
> > > This is a result of the handshake to exchange credentials for
> > > getpeereid().  To workaround this issue, try building screen
> > > with a tweak.  Server and as client should call
> > > 
> > >   setsockopt (sock, SOL_SOCKET, SO_PEERCRED, NULL, 0);
> > > 
> > > before calling accept or connect.
> > 
> > Following your advice, I tried the patch attached and
> > confirmed the problem regarding -Q option is solved.
> 
> any chance to rebuild screen with the patch from
> https://cygwin.com/ml/cygwin/2019-03/msg00167.html

Sure, will do. Thanks to both of y'all for solving this.
Andrew


--
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

