lkml.org 
[lkml]   [1996]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Proposal: restrict link(2)

<suggestion>

Part of the problem can (and should?) be solved by a new option to
rm(1):

--truncate Truncates the file to length 0 before removing.
This solves some problems when a file has been
hard-linked by another (malicious?) user and quotas
are enabled. Works not only under Linux, but AIX, OSF/1,
HP/UX, ...
See the respective man pages of truncate and ftruncate.

BUGS:
Sorry, it isn't part of POSIX (AFAIK), but AES (maybe XPG4?).

</suggestion>

-Harald

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.022 / U:2.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site