From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104743 invoked by alias); 8 Mar 2019 17:57:32 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 104056 invoked by uid 89); 8 Mar 2019 17:57:32 -0000 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 Received: from Unknown (HELO blaine.gmane.org) (195.159.176.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Mar 2019 17:57:30 +0000 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1h2JkN-000q2Q-SR for cygwin@cygwin.com; Fri, 08 Mar 2019 18:57:27 +0100 To: cygwin@cygwin.com From: Andrew Schulman Subject: Re: Logging-in using ssh elevates the user privilege. Date: Fri, 08 Mar 2019 17:57:00 -0000 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 X-SW-Source: 2019-03/txt/msg00177.txt.bz2 > 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