Re: 2.1.76: weird behavior of "ln -sf dir link"

Anders Hammarquist (iko@netg.se)
Sat, 17 Jan 1998 16:04:09 +0100


In article <m24t33o20g.fsf$vvv.vrn.ru@lists.netg.se> you write:

>I've found a weird behavior of creating a symbolic links to
>directories. If the link to directory already exists, then "ln -sf"
>will not be able to change the link:

It's not the kernel, it's GNU ln that has this rather odd (IMHO)
behaviour. Try "ln -nsf" instead and watch it work as you expect. (-n
tells ln not to dereference links in the target).

/Anders

-- 
 -- Of course I'm crazy, but that doesn't mean I'm wrong.
Anders Hammarquist   |       Mud at Kingdoms        | iko@netg.se
NetGuide Scandinavia |   telnet kingdoms.se 1812    | Fax: +46 31 50 79 39
http://www.netg.se   |                              | Tel: +46 31 50 79 40