This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: getent services enumeration glitch
- From: Mark Geisert <mark at maxrnd dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 18 Aug 2015 17:27:02 +0000 (UTC)
- Subject: Re: getent services enumeration glitch
- Authentication-results: sourceware.org; auth=none
- References: <loom dot 20150818T113145-139 at post dot gmane dot org> <20150818112416 dot GN17917 at calimero dot vinschen dot de>
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