From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20723 invoked by alias); 3 Feb 2014 10:18:11 -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 20710 invoked by uid 89); 3 Feb 2014 10:18:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 03 Feb 2014 10:18:10 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 8D676520A13; Mon, 3 Feb 2014 11:18:07 +0100 (CET) Date: Mon, 03 Feb 2014 10:18:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: openssh-6.5p1-1 don't use address in /etc/hosts Message-ID: <20140203101807.GP2821@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <52ECAC51.5020606@gmail.com> <52EE1826.9040504@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l5oECiFRo5dp+2y7" Content-Disposition: inline In-Reply-To: <52EE1826.9040504@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-02/txt/msg00026.txt.bz2 --l5oECiFRo5dp+2y7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1916 On Feb 2 11:04, Ola Str=C3=B6mfors wrote: >=20 > On Feb 1 13:54 Corinna Vinschen wrote > >On Feb 1 09:12, Ola Stromfors wrote: > >>Hi, > >> > >>After upgrading openssh from 6.4p1-1 to 6.5p1-1, ssh to host names > >>listed in /etc/hosts fails. /etc/hosts is actually a symlink to > >>/cygdriv/c/Windows/system32/drivers/etc/hosts. > > > >Not sure that's the actual reason. getaddrinfo is a WinSock call > >which, probably, never ignores its hosts file. > > > >>% ssh centaur > >>getaddrinfo: (null): Name or service not known > >>ssh: connect to host centaur port 22: No such file or directory > > > >(null) is the replacement string when printf'ing a NULL pointer as > >string. So it seems ssh called getaddrinfo with a NULL pointer for > >node and service. > > > >Can you call `ssh -vvv centaur' and see if the debug output gives > >some clue as to what happens? > [...] > I then started to comment out different lines in my .ssh/config file. > The line that caused the problem was >=20 > UsePrivilegedPort yes >=20 > After removing that lines I got this > [success] Thanks for tracking this down. I debugged this on the source level and it turned out that this is the result of an old Cygwin-related patch combined with a new generic patch in OpenSSH 6.5. On non-Cygwin systems, an "UsePrivilegedPort yes" is ignored if the uid of the caller is not 0 (=3D=3D root). On Cygwin "UsePrivilegedPort yes" is not ignored. The new generic patch is this: * ssh(1): bz#1211: make BindAddress work with UsePrivilegedPort. This leads to a call to getaddrinfo with hostname and service parameter set to NULL, if UsePrivilegedPort is set. The same occurs on non-Cygwin systems if the user is root. I'll report this as a bug upstream. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --l5oECiFRo5dp+2y7 Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJS72zfAAoJEPU2Bp2uRE+gcYUP/19v7111opEadKn+IXVaalKg 5KRHBOtqHcIAzpHHposipGC10K4deN16VvyCNVwYAqWsYs4VGITNy1t0i9YxEBct vI+9960MA+0jVqGn0qjKfv/B9/uTsUluynUehLTxu+LTk6YPDFkz6z9lmS/OC6RR Aee7PMZ189GDpuFsBtC5JtBANHN5189z0RO5Wv/qeaJ0y5ZR67rYtUQHEJNi72Ag fkejTZTrqgucNXS+BJPVMrNagnZ5BvKEcc+92RjciocxAZMaRQWkarkKthDyCp0s InI6lLRttqDAlfYvJiqzlVXNaF81a4m/FOE29Jsnp0BIQFHpKbTZZJuwssJKnVuK jHEXmwT4LWfVZRMCVz6+xjdaw+ZeU2poM3/oz7vK3ZGrQAFtaqKpHphwmHd6OXHa Lz6CoJwHosq84ICu2wmhcfURBdJ6S6fWbF3QexxV5OboJC1Qmlhf4wJz9FWhD1CJ Fu4nlcT/OSxqaIGwXiqFlvKr6pcmqY9/et4dvGDju2NRWhlFNZLH4OYRDVZCwQ24 dP8g8/mGJNELtApy2jDC52qzkOeyFBxtnMIHHysWxvYzBhg7xfQWxbOljN4eqQKQ JKjVyrXiDf4vDDBcsjOHBvnP/GnSIjRhKaz5lxNbPEk0el0vlozAuZKmLV/l4FWu 5w/77+F6+sdKhggUXNvD =JJYz -----END PGP SIGNATURE----- --l5oECiFRo5dp+2y7--