Protection from the dreaded "rm -fr /"

Dimitry Andric dimitry at andric.com
Sat Oct 2 07:49:05 PDT 2004


On 2004-10-02 at 10:19:28 Giorgos Keramidas wrote:

> His idea was remarkably simple, so I went ahead and wrote this patch for
> rm(1) of FreeBSD:

Of course, your work is commendable, but isn't is much simpler to just
not type commands like that?  I mean, "rm -rf /etc" or "rm -rf /bin"
are just as bad, but do you really want to be checking for all
possible `bad' deletions?  That way, we'll start to look like some
software from Redmond... :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20041002/afc7a738/attachment.bin


More information about the freebsd-hackers mailing list