From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 2 11:22:55 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 1500C16A4CE; Sat, 2 Oct 2004 11:22:55 +0000 (GMT) Received: from shrike.submonkey.net (cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com [81.103.67.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD27743D4C; Sat, 2 Oct 2004 11:22:54 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.42 (FreeBSD)) id 1CDhyX-000HaT-9O; Sat, 02 Oct 2004 12:22:53 +0100 Date: Sat, 2 Oct 2004 12:22:53 +0100 From: Ceri Davies To: Max Laier Message-ID: <20041002112253.GS2493@submonkey.net> Mail-Followup-To: Ceri Davies , Max Laier , freebsd-hackers@freebsd.org, Giorgos Keramidas References: <20041002081928.GA21439@gothmog.gr> <200410021123.59811.max@love2party.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XfgxuImQih7pKHD1" Content-Disposition: inline In-Reply-To: <200410021123.59811.max@love2party.net> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.6i Sender: Ceri Davies 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 11:22:55 -0000 --XfgxuImQih7pKHD1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 02, 2004 at 11:23:52AM +0200, Max Laier wrote: > [ Sorry to be so negative ... ] >=20 > At very least you should consider to error out silently as POSIX requires= "-f"=20 > to be silent. Other than that you should really look into the standards a= nd=20 > what they way about rm and friends. Are you sure? From the RATIONALE section of http://www.opengroup.org/onlinepubs/009695399/utilities/rm.html: "It is less clear that error messages regarding files that cannot be unlinked (removed) should be suppressed. Although this is historical practice, this volume of IEEE Std 1003.1-2001 does not permit the -f option to suppress such messages." > I am not a fan of providing seat belts like this. People concerned about = this,=20 > can "alias rm 'rm -i'" etc. etc. Others have commented like this ... >=20 > If you still have to make this change, make it tuneable with a environmen= t=20 > variable (and make it default to off). I'd prefer that too. Ceri --=20 It is not tinfoil, it is my new skin. I am a robot. --XfgxuImQih7pKHD1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBXo+NocfcwTS3JF8RAtNeAJ4tMPCj5grbkW1fhPa2TetVoPaUZQCfVPV4 SJtwEKtxygDeLnrtBvC/jSI= =TooE -----END PGP SIGNATURE----- --XfgxuImQih7pKHD1--