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
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple