[maintainer] coreutils-9.0-1: "ln -fs" bug

Marco Atzeri marco.atzeri@gmail.com
Sun Feb 9 05:40:15 GMT 2025


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"

Regards
Marco






More information about the Cygwin mailing list