Re: [patch] rm can have undesired side-effects



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.

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"