This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygport dropping *.exe links


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
> 
> 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.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]