From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67503 invoked by alias); 18 Aug 2015 18:18:50 -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 67495 invoked by uid 89); 18 Aug 2015 18:18:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY autolearn=no 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; Tue, 18 Aug 2015 18:18:49 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id B7353A8096A; Tue, 18 Aug 2015 20:18:46 +0200 (CEST) Date: Tue, 18 Aug 2015 18:18:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: getent services enumeration glitch Message-ID: <20150818181846.GA31023@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20150818112416.GN17917@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-08/txt/msg00316.txt.bz2 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1140 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 > > >=20 > > > $ getent services | grep man > > > man 16165/tcp > > >=20 > > 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... > >=20 > > 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. > >=20 > > Thanks, > > Corinna >=20 > The new snapshot solves the issue for me. I'll see if I can stumble upon= a > more substantial bug next time :) Haha, yeah, but I think it's substantial enough. I'm just puzzled that this bug could live all this time unhampered. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJV03cGAAoJEPU2Bp2uRE+gayYP/2A4/gzDyj0CcSHiGuVjcQr9 h1vSNr+ZKOIMiuENrWece+mbKu1HjoQyzo28dpgh1yRPLeuLYKwSbXboxNJHVnTX pCzjJM/6AN7fNspB0zYQCPLbmH9TKt4t7qvHKXFk4yMkw/i6HGhOzkdoB7x8AkR2 qMVvursPi7LO2wrzxK9ryQNWspMo9gDlvWEzuYO1aggfBjGkL/p3RS2cP/2537UV Edi3GzOwuENvwBoBhyiJJumgVVYmQAJ8YTVdI3TDMHAjXFDT3TsUk3Dn6L+X5ET1 N0VfIylUyWDS+92LDnWjLrMQIK08sc14FDN4UJw3Sw4sWgNbc39xJ4WwaOn5fuXX xKRHf19AI29uGOGaKJDhMaHe10Sbe0qcOLiCgf56vdXW7nwuJtkRIMIwGmFBMo6P piovReWqe77KZkRZ3/UTPWfHgaSQBgP5duBUQptJ4+lXBgNryfa9Xd/l7tEOUsGU D9KT59KtdCtNmHvg2zAXmWyahLyQdxdWgwOHAniluyC0/vlT3jBzDBHlKvAetjc/ H5CR1KMCgUdG6m56tuMTfQdEp7yH6Fj2+SpN6Im0w63JJLKt50ouFG+9oIxtpsAg QrMXIQUmjuQd7Fd/yR9NKvUpStjjJ17+N2XBYNi7LhXviMASt7wDeQ/HRzcDKDrZ nKBfscQQRDKDZU6D7hJW =BErE -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--