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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=vh6dPB OQNAC9KDGet7GpVx8OW0usB8SgxfTZtAealoMFhbfWKbCCw5MDkRvSmvlnB+4Yfr YSnl0Oe8Yb3QQMCi0KRUuTe/rCRYDbEC3z2JDh0P42oOXFx5sP9FZflCbxhZUmY4 Tcx8EzWFaO2DUr3VTJmIdS83/hTraOSSeitCI= 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; s=default; bh=8RxoAQ+6TqLD Hj5WWY45cuej9Hs=; b=kZkifPgKrPp5UUNb4otWs9su7fHi4ZkaSE4ei/dbJfio BhFaCjjW9QTUc1WrPlu8MNlIDSHWobYy61LeXlwsWvuN7n7XOR0wtLF88twWSwLx ErOR82IgTsTFehoVmrrG9m/aOJ/EDtJbBPGwqxtwsgoHOXxaghu2asqy4R69BFM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Message-ID: <54223951.3040801@redhat.com> Date: Tue, 23 Sep 2014 21:24:01 -0600 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 AT cygwin DOT com Subject: Re: cygport dropping *.exe links References: <53EDEE67 DOT 6070501 AT gmail DOT com> <53EE1D70 DOT 6080808 AT gmail DOT com> <20140815151619 DOT GK28562 AT calimero DOT vinschen DOT 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 --j4SAEMiqHGqHqie8mhDAtHo2sv84QIHAg Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" -----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--