Date: Sat, 2 Oct 2004 13:50:14 +0200 From: Max Laier <max@love2party.net> To: Ceri Davies <ceri@submonkey.net>, freebsd-hackers@freebsd.org, Giorgos Keramidas <keramida@freebsd.org> Subject: Re: Protection from the dreaded "rm -fr /" Message-ID: <200410021350.32888.max@love2party.net> In-Reply-To: <20041002112253.GS2493@submonkey.net> References: <20041002081928.GA21439@gothmog.gr> <200410021123.59811.max@love2party.net> <20041002112253.GS2493@submonkey.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410021350.32888.max>