From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28988 invoked by alias); 8 Oct 2014 12:55:01 -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 28827 invoked by uid 89); 8 Oct 2014 12:55:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Oct 2014 12:54:59 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 44BC48E0A26; Wed, 8 Oct 2014 14:54:57 +0200 (CEST) Date: Wed, 08 Oct 2014 12:55:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: cygport dropping *.exe links Message-ID: <20141008125457.GE29235@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <53EDEE67.6070501@gmail.com> <53EE1D70.6080808@gmail.com> <20140815151619.GK28562@calimero.vinschen.de> <54223951.3040801@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KuLpqunXa7jZSBt+" Content-Disposition: inline In-Reply-To: <54223951.3040801@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-10/txt/msg00079.txt.bz2 --KuLpqunXa7jZSBt+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1373 On Sep 23 21:24, Eric Blake wrote: > On 08/15/2014 09:16 AM, Corinna Vinschen wrote: >=20 > Sorry for taking more than a month to get to the bottom of this one. > But I have good news: >=20 > >> $ 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. >=20 > 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: >=20 > $ ln -s nowhere a > $ ln a b > $ mv a b > $ ls [ab] > b >=20 > 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. Seems to work fine in 8.23-3. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --KuLpqunXa7jZSBt+ Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUNTQhAAoJEPU2Bp2uRE+gedQQAI4d257dVmGvlokJ+JkxCrBK YTCSmp09lY8bT0c7LkL2yJVjd4YDKc4qBcDe9EzMi56FiYHWBWahKGz0AFMr6oS0 4r8Ah1/7XAtJJzV08JdELRkRTZGjNvYN4RGxCl/lUBF1Jla1+mCrzO7NRYSFUrqQ WtzpXCinblDO20HWW3NArkhPvqPiq0+N7BDN0wiDdRuwiVQqeZA0tkxcXFqYiOLe oTfi0GuTKv1PN2OrXol2vYqFbsIF6jENod4LfTXkfTRavSsF7F2AM6PK1elcq00h TLL0I2UzpXRr4/WXVj5uoPw9W+Ufm31juzjoxjf/LvUnprPhLXs4kss3kOWV4IPS WrWTtKRDTlxQyFtJml0cKjkiSG2B/b/1YFdUGHYzOUNiLZPiWa9H99iwjMshPl65 YgyO//Ha4DrSuuNbI9r8CMnsuU4EsXOC3pO9Ulaf5cOtWglQtMIX9uwEAvrX5UL4 AyJ1wZ1IIM8pUT1p5VliwUZkjvjH8rYCPhmPNJ53oG5OKsvUx90fiq3erRslQQsf kVwHLunNFs1RRKj+pyE2/N3Lj3tvgxxb4OvNh21Sy5Q/Jf2PbyGnFqke/SeH0S6S 2t9/O7ceaziNsOTI9jb5V0bsNsdaB8kfEefCLWsCNueTSQ/SqD0ETJte7wxP/l49 2n87Oj680STc7bKAR9MN =muTw -----END PGP SIGNATURE----- --KuLpqunXa7jZSBt+--