[patch] rm can have undesired side-effects

Borja Marcos BORJAMAR at SARENET.ES
Mon Oct 30 01:26:25 UTC 2006


> That maybe the case but does rm -f <file> remove all copies?
> Nope so its behaviour is safe even with multiple hardlinks.

No. rm unlinks a file from a directory. If the file had no more  
links, it is deleted as well.

There's no surprise at all on the behavior of rm with hard links.





Borja.



More information about the freebsd-hackers mailing list