[maintainer] coreutils-9.0-1: "ln -fs" bug
Marco Atzeri
marco.atzeri@gmail.com
Sun Feb 9 18:51:04 GMT 2025
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
Regards
Marco
More information about the Cygwin
mailing list