From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20216 invoked by alias); 25 Aug 2008 16:02:20 -0000 Received: (qmail 20201 invoked by uid 22791); 25 Aug 2008 16:02:20 -0000 X-Spam-Check-By: sourceware.org Received: from py-out-1112.google.com (HELO py-out-1112.google.com) (64.233.166.178) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 25 Aug 2008 16:01:30 +0000 Received: by py-out-1112.google.com with SMTP id w53so1158676pyg.25 for ; Mon, 25 Aug 2008 09:01:28 -0700 (PDT) Received: by 10.65.15.19 with SMTP id s19mr9151193qbi.42.1219680088109; Mon, 25 Aug 2008 09:01:28 -0700 (PDT) Received: from ?192.168.0.101? ( [24.76.249.6]) by mx.google.com with ESMTPS id p31sm8581312qbp.18.2008.08.25.09.01.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 Aug 2008 09:01:23 -0700 (PDT) Message-ID: <48B2D751.3060405@users.sourceforge.net> Date: Mon, 25 Aug 2008 16:02:00 -0000 From: "Yaakov (Cygwin Ports)" User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: cygwin-apps@cygwin.com Subject: Re: cygport-0.9.0 in release-2 References: <48B10949.3050300@users.sourceforge.net> <48B29FF4.3040701@byu.net> <48B2D521.6050603@users.sourceforge.net> In-Reply-To: <48B2D521.6050603@users.sourceforge.net> Content-Type: multipart/mixed; boundary="------------030900090001070108090604" Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com X-SW-Source: 2008-08/txt/msg00261.txt.bz2 This is a multi-part message in MIME format. --------------030900090001070108090604 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 1026 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Yaakov (Cygwin Ports) wrote: > I rebuilt and tested the X11R7 lndir on 1.7, and unfortunately it seems > to have the same bug. I would prefer to fix lndir and just use it > exclusively then trying to deal with the workaround. Could you take a > look at the source (only one .c file) and see if you can help me figure > it out? > > http://ftp.sunsite.dk/projects/cygwinports/release/X11/lndir/lndir-1.0.1-1-src.tar.bz2 Based on the description of your problem, what about the attached patch? Your test case then works, but: 1) I have no idea what other side effects this may have; 2) Why does Cygwin act differently then every other *NIX here? 3) How many other packages is this behaviour going to affect? Yaakov -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkiy11EACgkQpiWmPGlmQSMjTACg36bx0b+epZXfFlb3F0GSCvgg tz0AoJq8EeT9r4YjWkTTfLrO4255RPSe =O57a -----END PGP SIGNATURE----- --------------030900090001070108090604 Content-Type: text/x-patch; name="lndir-1.0.1-1.src.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lndir-1.0.1-1.src.patch" Content-length: 400 --- origsrc/lndir-1.0.1/lndir.c 2005-11-23 16:33:07.000000000 -0600 +++ src/lndir-1.0.1/lndir.c 2008-08-25 10:55:14.270794700 -0500 @@ -205,8 +205,10 @@ if ((sb.st_mode & S_IFMT) == S_IFDIR) #endif { +#ifndef __CYGWIN__ /* directory */ n_dirs--; +#endif if (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) --------------030900090001070108090604--