delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/08/18/13:27:59

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=s8xBXRBpQDJ9UQWiol8wwfRYTTyd5hMgv2iblQXjruVX96ZmMwo2g
kwQW86LY6Y5vAdVUmMuWf46bmyLFxtXZ4ERtwaVdfvXRdaC5fxvIb9HXl+8UMFhN
cErRXTSsZIssZ+q5Vh+6kqhKY+SqsVs99oJ4LrVJ17mdNzUqXbzr04=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=FbRBKPKPzuC3TtmtuvsuEtsE+PA=; b=QDykJ4yre0IbcwbORFHe1v/TFqVT
ZJkkQcEBe+7k+KPnkOppDf9aTfuD3a1gXUwlHiXCKj1ZAz5rMF0LqLSSsBqizwo2
mkuUQdz5xNVA5SHMdAJIyrfL1qga5QVMaYDNoNmxYJp85NNJW7At4vmjCrZcy0yU
8pc2oSblGgvQx5M=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Mark Geisert <mark AT maxrnd DOT com>
Subject: Re: getent services enumeration glitch
Date: Tue, 18 Aug 2015 17:27:02 +0000 (UTC)
Lines: 30
Message-ID: <loom.20150818T191346-834@post.gmane.org>
References: <loom DOT 20150818T113145-139 AT post DOT gmane DOT org> <20150818112416 DOT GN17917 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019