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


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

--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.

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



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