www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 9 Jul 2012 14:38:28 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cygwin getpass broken recently? was: cygrunsrv fails to prompt for user password |
Message-ID: | <20120709123828.GA20472@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <A72317022EF94931BECDB5D98449361C AT multiplay DOT co DOT uk> <87292535788F4E2CB162C788878399B8 AT multiplay DOT co DOT uk> |
MIME-Version: | 1.0 |
In-Reply-To: | <87292535788F4E2CB162C788878399B8@multiplay.co.uk> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Jul 7 05:05, Steven Hartland wrote: > ----- Original Message ----- From: "Steven Hartland" > > >We're updating our servers to a newer version of cygwin (1.7.15) > >from previous 1.7 version and in this version the install of > >cygrunsrv (V1.40, Apr 25 2012) fails to correctly prompt for > >a user password even though -u <username> is being specified. > > > >It seems like cygrunsrv maybe checking for an "interactive" > >session and incorrectly determining its not as in our case > >we are running the cygrunsrv via ssh e.g. > > > >ssh "cygrunsrv ...." > > > >We know that this worked correctly in cygrunsrv V1.34, Mar 18 > >2008. > > > >Bug introduced recently? > > After inspecting the code for cygrunsrv and adding some debug > I've determined this isn't a bug in the util but in cygwin's > getpass function which I believe may have been changed > recently by Corinna Vinschen, after googling around. > > Is this a new issue caused by these changes Corinna? Looks like it. The code doesn't notice if stdin is not connected to a tty or pty, but to a socket instead and then falls back to returning with an empty password immediately. I'll fix that in CVS. For the time being, the workaround is to run `ssh -t ...' Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |