From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102612 invoked by alias); 18 Aug 2015 17:27:41 -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 102601 invoked by uid 89); 18 Aug 2015 17:27:40 -0000 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 Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 18 Aug 2015 17:27:39 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZRkfX-0005P5-Jg for cygwin@cygwin.com; Tue, 18 Aug 2015 19:27:27 +0200 Received: from 76-217-5-67.lightspeed.irvnca.sbcglobal.net ([76.217.5.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Aug 2015 19:27:27 +0200 Received: from mark by 76-217-5-67.lightspeed.irvnca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Aug 2015 19:27:27 +0200 To: cygwin@cygwin.com From: Mark Geisert Subject: Re: getent services enumeration glitch Date: Tue, 18 Aug 2015 17:27:00 -0000 Message-ID: References: <20150818112416.GN17917@calimero.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00314.txt.bz2 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