Re: [SILVERY GOLDSTAR] Re: getent services enumeration glitch

2015-08-20 Thread Andrew Schulman
> s/fixing/finding/ ? Right, thanks. Fixed. -- 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

Re: [SILVERY GOLDSTAR] Re: getent services enumeration glitch

2015-08-19 Thread Andrey Repin
Greetings, Andrew Schulman! >> On Aug 18 23:43, Mark Geisert wrote: >> > Buchbinder, Barry writes: >> > > Corinna Vinschen sent the following at Tuesday, August 18, 2015 7:24 AM >> > > >On Aug 18 09:40, Mark Geisert wrote: >> > > >Congratulations! You found a 13 years old bug in Cygwin's getserven

Re: [SILVERY GOLDSTAR] Re: getent services enumeration glitch

2015-08-19 Thread Corinna Vinschen
On Aug 19 08:22, Andrew Schulman wrote: > > On Aug 18 23:43, Mark Geisert wrote: > > > Buchbinder, Barry writes: > > > > Corinna Vinschen sent the following at Tuesday, August 18, 2015 7:24 AM > > > > >On Aug 18 09:40, Mark Geisert wrote: > > > > >Congratulations! You found a 13 years old bug in Cy

Re: [SILVERY GOLDSTAR] Re: getent services enumeration glitch

2015-08-19 Thread Andrew Schulman
> On Aug 18 23:43, Mark Geisert wrote: > > Buchbinder, Barry writes: > > > Corinna Vinschen sent the following at Tuesday, August 18, 2015 7:24 AM > > > >On Aug 18 09:40, Mark Geisert wrote: > > > >Congratulations! You found a 13 years old bug in Cygwin's getservent > > > >implementation, which ret

[SILVERY GOLDSTAR] Re: getent services enumeration glitch

2015-08-19 Thread Corinna Vinschen
On Aug 18 23:43, Mark Geisert wrote: > Buchbinder, Barry writes: > > Corinna Vinschen sent the following at Tuesday, August 18, 2015 7:24 AM > > >On Aug 18 09:40, Mark Geisert wrote: > > >Congratulations! You found a 13 years old bug in Cygwin's getservent > > >implementation, which returned the po

Re: getent services enumeration glitch

2015-08-18 Thread Mark Geisert
Buchbinder, Barry writes: > Corinna Vinschen sent the following at Tuesday, August 18, 2015 7:24 AM > >On Aug 18 09:40, Mark Geisert wrote: > >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 n

RE: getent services enumeration glitch

2015-08-18 Thread Buchbinder, Barry (NIH/NIAID) [E]
Corinna Vinschen sent the following at Tuesday, August 18, 2015 7:24 AM >On Aug 18 09:40, Mark Geisert wrote: >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.

Re: getent services enumeration glitch

2015-08-18 Thread Corinna Vinschen
On Aug 18 12:43, Warren Young wrote: > On Aug 18, 2015, at 5:24 AM, Corinna Vinschen > wrote: > > > > Makes me wonder > > how often getservent is used in the wild… > > I’d bet getservbyname() is used far more often. I won't bet against you. Corinna -- Corinna Vinschen Plea

Re: getent services enumeration glitch

2015-08-18 Thread Warren Young
On Aug 18, 2015, at 5:24 AM, Corinna Vinschen wrote: > > Makes me wonder > how often getservent is used in the wild… I’d bet getservbyname() is used far more often. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http

Re: getent services enumeration glitch

2015-08-18 Thread Corinna Vinschen
On Aug 18 17:27, Mark Geisert wrote: > 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

Re: getent services enumeration glitch

2015-08-18 Thread Mark Geisert
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

Re: getent services enumeration glitch

2015-08-18 Thread Corinna Vinschen
Hi Mark, On Aug 18 09:40, Mark Geisert wrote: > There is a glitch when getent enumerates all services; it shows an incorrect > port number. Providing a service name on invocation shows the correct port > number. Examples: > > $ getent services man > man 9535/tcp > > $ getent

getent services enumeration glitch

2015-08-18 Thread Mark Geisert
There is a glitch when getent enumerates all services; it shows an incorrect port number. Providing a service name on invocation shows the correct port number. Examples: $ getent services man man 9535/tcp $ getent services | grep man man 16165/tcp It looks l