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





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

Reply via email to