Re: Can't hardlink in different dirs. (BUG#826)

Pavel Machek (pavel@suse.cz)
Fri, 3 Dec 1999 21:49:28 +0100


Hi!

> >Don't bring the policy question into the kernel. If you want to kill the
> >contents of inode - unlink() is _not_ a way to go. truncate() is.
>
> What have unlink() or truncate() to do with this issue? The only system
> call we are talking about is _link_(2).

He's telling you to use > $1; rm $1 instead of plain rm $1. That works
in both cases (suid programs and quota being exceeded).

You might want to put file called rm containing this

#!/bin/bash
> $1; rm $1

on your search path.
Pavel

-- 
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel.  Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/