cvs commit: src/bin/rm rm.1 rm.c
Peter Jeremy
peterjeremy at optushome.com.au
Mon Oct 30 09:01:07 UTC 2006
On Mon, 2006-Oct-30 03:32:09 +0000, Xin LI wrote:
> Be more reasonable when overwrite mode is specified while there
> is hard links. Overwritting when links > 1 would cause data
> loss, which is usually undesired.
Another way of looking at it is that not overwriting when links > 1
means that the data I thought I securely deleted is still present
somewhere on my computer and I have no easy way to find it.
I believe that this change creates a security hole and should be
reverted. It the user specified '-P', either the file should be
over-written or the file should be left untouched (not deleted).
This is the only way that the user can be protected both against
accidently over-writing a wanted file when an unwanted link is
removed and failing to over-write an unwanted file which had a
stray additional link.
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20061030/25bd764f/attachment.pgp
More information about the cvs-src
mailing list