From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 2 15:03:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F281516A4CE; Sat, 2 Oct 2004 15:03:51 +0000 (GMT) Received: from zaphod.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4879E43D1D; Sat, 2 Oct 2004 15:03:51 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 17CCF119AF; Sat, 2 Oct 2004 17:03:50 +0200 (CEST) Date: Sat, 2 Oct 2004 17:03:50 +0200 From: "Simon L. Nielsen" To: Dimitry Andric Message-ID: <20041002150349.GB769@zaphod.nitro.dk> References: <20041002081928.GA21439@gothmog.gr> <1221615358.20041002164846@andric.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SkvwRMAIpAhPCcCJ" Content-Disposition: inline In-Reply-To: <1221615358.20041002164846@andric.com> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@FreeBSD.org cc: Giorgos Keramidas Subject: Re: Protection from the dreaded "rm -fr /" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2004 15:03:52 -0000 --SkvwRMAIpAhPCcCJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2004.10.02 16:48:46 +0200, Dimitry Andric wrote: > On 2004-10-02 at 10:19:28 Giorgos Keramidas wrote: >=20 > > His idea was remarkably simple, so I went ahead and wrote this patch for > > rm(1) of FreeBSD: >=20 > 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... :) As keramida has noted this particular case is more likely to be made by mistake than many others, e.g. by doing "rm -rf / foo/bar" where "rm -rf /foo/bar/" was meant. Therefor I really think keramidas _optional_ foot-shooting feature is a nice thing. I know I will enable it on my systems if it's committed, and probably keep it as a local patch if not. --=20 Simon L. Nielsen FreeBSD Bikeshed Team --SkvwRMAIpAhPCcCJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBXsNVh9pcDSc1mlERAr39AJ4tOLw13oorXmJS5Lle0gLcb5AyaACePLLu OCGYmslYaacUGmEV6Bb01nc= =ElGg -----END PGP SIGNATURE----- --SkvwRMAIpAhPCcCJ--