X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=m7cliIjqkdtO03N7oakD2xVi8HX5b7591wv6GAHTpbpIepNbbudKX Kl1+IaaS7x8vq0c81XXO9IH+jDUErJBCRlWDSs1lWyI0EHumxTNluM71p93uTdZG SfUpop/bhc8lBHWkAQSLrxv6S24VztEdL4S6fAnHBBTZX8wwCr31Kk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=H5k47EkU9SgpW5wrK4hsIZWVYGE=; b=BQQP7xxEHOziKsD1wmGgTnDCzKjV L8w7XZVw97i+PZW2zZX5Zi1yKFzQ1e0TUk4+KZMWzoXJmlF0QfpopJVVmOUjWeLd CnLJQoAyWEAQBQDNso035b5F8yo1BDCqDfEDLwiu6HYQA6qhy44F/ETurKWy3OcP 7QYCLYvPrw7iBEc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Date: Tue, 18 Aug 2015 20:18:46 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: getent services enumeration glitch Message-ID: <20150818181846.GA31023@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20150818112416 DOT GN17917 AT calimero DOT vinschen DOT 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) --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 -----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--