From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 2 11:51:27 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 C43D116A4CE; Sat, 2 Oct 2004 11:51:27 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D48A43D2D; Sat, 2 Oct 2004 11:51:27 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CDiQ0-0002KK-00; Sat, 02 Oct 2004 13:51:16 +0200 Received: from [217.227.153.30] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1CDiPz-0001aZ-00; Sat, 02 Oct 2004 13:51:16 +0200 From: Max Laier To: Ceri Davies , freebsd-hackers@freebsd.org, Giorgos Keramidas Date: Sat, 2 Oct 2004 13:50:14 +0200 User-Agent: KMail/1.7 References: <20041002081928.GA21439@gothmog.gr> <200410021123.59811.max@love2party.net> <20041002112253.GS2493@submonkey.net> In-Reply-To: <20041002112253.GS2493@submonkey.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2479550.tlC6PqidFQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200410021350.32888.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 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:51:27 -0000 --nextPart2479550.tlC6PqidFQ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 02 October 2004 13:22, Ceri Davies wrote: > On Sat, Oct 02, 2004 at 11:23:52AM +0200, Max Laier wrote: > > [ Sorry to be so negative ... ] > > > > At very least you should consider to error out silently as POSIX requir= es > > "-f" to be silent. Other than that you should really look into the > > standards and 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." Misread - I stand corrected. > > I am not a fan of providing seat belts like this. People concerned about > > this, can "alias rm 'rm -i'" etc. etc. Others have commented like this > > ... > > > > If you still have to make this change, make it tuneable with a > > environment variable (and make it default to off). > > I'd prefer that too. > > Ceri =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2479550.tlC6PqidFQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBXpYIXyyEoT62BG0RAnp6AJ48vbeYwbblp2xHla4je7QP9ezLJQCffN5L gZaiIXhryp009aQAtae/1A0= =1mx8 -----END PGP SIGNATURE----- --nextPart2479550.tlC6PqidFQ--