From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29191 invoked by alias); 24 Sep 2014 03:24:07 -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 29174 invoked by uid 89); 24 Sep 2014 03:24:05 -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,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 24 Sep 2014 03:24:04 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8O3O2s4025673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 23 Sep 2014 23:24:02 -0400 Received: from [10.3.113.136] (ovpn-113-136.phx2.redhat.com [10.3.113.136]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8O3O1rW008506 for ; Tue, 23 Sep 2014 23:24:02 -0400 Message-ID: <54223951.3040801@redhat.com> Date: Wed, 24 Sep 2014 03:35:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: cygport dropping *.exe links References: <53EDEE67.6070501@gmail.com> <53EE1D70.6080808@gmail.com> <20140815151619.GK28562@calimero.vinschen.de> In-Reply-To: <20140815151619.GK28562@calimero.vinschen.de> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="j4SAEMiqHGqHqie8mhDAtHo2sv84QIHAg" X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00365.txt.bz2 --j4SAEMiqHGqHqie8mhDAtHo2sv84QIHAg Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1172 On 08/15/2014 09:16 AM, Corinna Vinschen wrote: Sorry for taking more than a month to get to the bottom of this one. But I have good news: >> $ touch a.exe >> $ ln -s a.exe b.exe >> $ ls -l >> total 1 >> -rw-r--r-- 1 marco Administrators 0 Aug 15 16:41 a.exe >> lrwxrwxrwx 1 marco Administrators 5 Aug 15 16:41 b.exe -> a.exe >> >> $ mv b.exe b >> $ ls -l >> total 0 >> -rw-r--r-- 1 marco Administrators 0 Aug 15 16:41 a.exe >=20 > Looks like a bug in coreutils 8.23. This works fine in coreutils-8.15. Actually, this was an intentional upstream change made by coreutils 8.16, but which has a negative effect on cygwin .exe magic. The real reason for the change is this upstream testcase: $ ln -s nowhere a $ ln a b $ mv a b $ ls [ab] b In coreutils 8.15, this mistakenly errored out instead of deleting 'a'. But the upstream fix for this needs additional cygwin magic to realize that when 'b' and 'b.exe' are both symlinks and have the same inode, then it is the same as a case change, and NOT a case of hard link renames. I'm cooking up the patch now. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --j4SAEMiqHGqHqie8mhDAtHo2sv84QIHAg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 539 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUIjlRAAoJEKeha0olJ0Nqr5IH/1klqAWzBz/iM4XhxI/HsKkS CIZAZPrSKbnBuv2cmne6h+yQqyUGM62rdeybTgPdj1jD+pHO4/kJuLadDYjmUp2a f1iqq43YseaZ+dShi5MdVMoW2TWzrXIra5Gxu5bKsmek/vCbhUvqii6B0jIsW3OS V7h/Jaf8RtIHX0mZqDPE4g3jtpUL+Z00tb6gDilnvwzO8W/RHS8oqjWJ33FZnla6 A7MxiRzjC1WGPM6YprA/4aM01akzYic4n8jHNMbdyX/Vsc/Otm+xmqHVIIgiOvdS x/KiioxxKyzS1e7JgzDUZjAVvXW6KOASSTdWGP0xTNwUpHje6HUouAhB4DFip9g= =IklN -----END PGP SIGNATURE----- --j4SAEMiqHGqHqie8mhDAtHo2sv84QIHAg--