[patch] rm can have undesired side-effects

Doug Barton dougb at FreeBSD.org
Mon Oct 30 21:05:17 UTC 2006


Simon L. Nielsen wrote:

> Personally I think rm should do what you ask it to do - if you ask it
> to overwrite a file which has multiple links, well... though luck.  

Sorry, I disagree. It's not always obvious to the user when a file has
hard links, and I can't see any situation where the pre-recent-patch
behavior (overwriting the actual file when using -P on a hard link) is
the expected outcome.

It's all well and good to say, "tough luck," but I don't think that's
what our users expect.

Doug


-- 

    This .signature sanitized for your protection


More information about the freebsd-hackers mailing list