[maintainer] coreutils-9.0-1: "ln -fs" bug
Brian Inglis
Brian.Inglis@SystematicSW.ab.ca
Sun Feb 9 19:16:12 GMT 2025
On 2025-02-09 11:51, Marco Atzeri via Cygwin wrote:
> On 09/02/2025 06:40, Marco Atzeri wrote:
>> Noticed today, not sure it is new nor that is Cygwin specific.
>>
>> It can create unrequested circular links, to replicate:
>>
>> $ cd /tmp
>> $ mkdir dirA
>> $ mkdir dirB
>> $ cd dirA
>> $ ln -fs /tmp/dirB dirB
>> $ ls -l
>> total 0
>> lrwxrwxrwx 1 marco marco 9 Feb 9 06:33 dirB -> /tmp/dirB
>> $ cd dirB
>> $ ls -l
>> total 0
>> lrwxrwxrwx 1 marco marco 7 Feb 9 06:25 dirB -> ../dirB
>>
>> I built nothing in dirB, but now there is inside a circular link to itself.
>>
>>
>> It only happens with "ln -fs" not with "ln -s"
>
> the test package
>
> coreutils 9.5-1
>
> has note this issue
Thanks very much Marco,
Glad to hear - that was quick!
I will have to dig around the changes to see what was fixed.
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut
-- Antoine de Saint-Exupéry
More information about the Cygwin
mailing list