Joerg Pernfuss wrote:
> On Mon, 30 Oct 2006 02:43:58 +0100
> Joerg Pernfuss <[EMAIL PROTECTED]> wrote:
>
>> That would mean that `rm -P <file>' with <file> having a link count of
>> at least 2, would behave like `rm <file>' (and like Romain suggested).
>
>
> Correction after some `read the frakkin code':
>
> if (sbp->st_nlink > 1) {
> warnx("%s (inode %u): not overwritten due to multiple links",
> file, sbp->st_ino);
> return (0);
> The link is removed, the file is not overwritten and a warning is generated.Yeah I think this is reasonable and thanks y'all for mentioning this. I have just committed a similar patch that is ported from OpenBSD against -HEAD. Cheers, -- Xin LI <[EMAIL PROTECTED]> http://www.delphij.net/ FreeBSD - The Power to Serve!
signature.asc
Description: OpenPGP digital signature

