This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: getent services enumeration glitch


Corinna Vinschen writes:
> On Aug 18 09:40, Mark Geisert wrote:
> > $ getent services man
> > man                   9535/tcp
> > 
> > $ getent services | grep man
> > man                   16165/tcp
> > 
> Congratulations!  You found a 13 years old bug in Cygwin's getservent
> implementation, which returned the port number in host byte order
> instead of in network byte order for all this time.  Makes me wonder
> how often getservent is used in the wild...
> 
> Since I uploaded 2.2.1-0.2 just before your bug report, I quickly
> created a new snapshot with the patch on https://cygwin.com/snapshots/
> Please give it a try.
> 
> Thanks,
> Corinna

The new snapshot solves the issue for me.  I'll see if I can stumble upon a
more substantial bug next time :)
Cheers,

..mark

--
captcha: schussing




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]