Pavel Machek <[EMAIL PROTECTED]> said: [That was a bit of exessive crossposting, IMHO] > In-Reply-To: <[EMAIL PROTECTED]>; from Andr > ***ea Arcangeli on Fri, Dec 03, 1999 at 01:48:01AM +0100 > > >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). Won't affect inode quota overruns; blows away the file even if there are legitimate hardlinks to it. > You might want to put file called rm containing this > #!/bin/bash > > $1; rm $1 > > on your search path. Nice infinite recursion, that one ;-) -- Horst von Brand [EMAIL PROTECTED] Casilla 9G, Viņa del Mar, Chile +56 32 672616
- Re: Can't hardlink in different dirs. (BUG#826) Andrea Arcangeli
- Re: Can't hardlink in different dirs. (BUG#8... Alexander Viro
- Re: Can't hardlink in different dirs. (B... Andrea Arcangeli
- Re: Can't hardlink in different dirs... Alexander Viro
- Re: Can't hardlink in different ... Kjetil Torgrim Homme
- Re: Can't hardlink in diffe... Alexander Viro
- Re: Can't hardlink in d... Kjetil Torgrim Homme
- Re: Can't hardlink in d... Alexander Viro
- Re: Can't hardlink in different dirs... Pavel Machek
- Re: Can't hardlink in different ... Brandon S. Allbery KF8NH
- Re: Can't hardlink in different ... Horst von Brand
- Re: Can't hardlink in different dirs. (BUG#826) Alexander Viro
- Re: Can't hardlink in different dirs. (BUG#8... Peter J. Braam
- Re: Can't hardlink in different dirs. (B... Alexander Viro
- Re: Can't hardlink in different dirs... Andrea Arcangeli
- Re: Can't hardlink in different ... Alexander Viro
- Re: Can't hardlink in diffe... Peter J. Braam
- Re: Can't hardlink in d... Richard Gooch
- Re: Can't hardlink in d... Andrea Arcangeli
- Re: Can't hardlink in d... David Woodhouse
- Re: Can't hardlink in d... Richard Gooch