getent hosts exit code 2 for all names in /etc/hosts

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Mar 8 09:39:00 GMT 2017


On Mar  7 14:05, Brian Inglis wrote:
> With current Cygwin 64 getent hosts returns exit code 2 
> for all names in /etc/hosts, addresses still work fine, 
> while getent ahosts returns the expected results for all 
> names in /etc/hosts.
> In previous releases getent hosts and getent ahosts both 
> returned equivalent results.
> 
> Attached cygcheck -svr output [lightly redacted].
> I have other Unix like bins and Windows equivalents, 
> and a load of tools in my path following Cygwin 64, 
> plus its absolute patch so everything interoperates
> in Windows, so cygcheck is huge.
> 
> I have straces of good and bad commands available. 

I can not repoduce this.  I have no entries in /etc/hosts and added a
few for testing.  In my case getent hosts/ahosts always returns 0 if
an entry in /etc/hosts is chosen.  There's also no good reason that
this would change.  Getent hasn't been updated for quite some time and
there's no change in that area in Cygwin.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170308/71905a71/attachment.sig>


More information about the Cygwin mailing list