From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 6 06:40:06 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 2651116A4CE for ; Wed, 6 Oct 2004 06:40:06 +0000 (GMT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08B9943D31 for ; Wed, 6 Oct 2004 06:40:06 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) i966e5vA049350 for ; Tue, 5 Oct 2004 23:40:05 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id i966e5Zb049349; Tue, 5 Oct 2004 23:40:05 -0700 (PDT) (envelope-from dillon) Date: Tue, 5 Oct 2004 23:40:05 -0700 (PDT) From: Matthew Dillon Message-Id: <200410060640.i966e5Zb049349@apollo.backplane.com> To: freebsd-hackers@freebsd.org References: <20041002081928.GA21439@gothmog.gr> <200410021123.59811.max@love2party.net> <20041002083336.GA10355@k7.mavetju> <20041002101842.GA23272@gothmog.gr> <200410060157.i961vGTF048095@apollo.backplane.com> Subject: Re: rm -I patch (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: Wed, 06 Oct 2004 06:40:06 -0000 Here is the final commit I made to DFly. I cleaned up the confirmation message somewhat to make it more useful and correct the grammer. I'm not saying that this should or should not be done in FreeBSD, but I cannot think of any negatives and the -I option does allow for a far more sophisticated check then just '/' and a far less annoying confirmation then -i. http://www.dragonflybsd.org/cvsweb/src/bin/rm/rm.1.diff?r1=1.2&r2=1.3&f=u http://www.dragonflybsd.org/cvsweb/src/bin/rm/rm.c.diff?r1=1.3&r2=1.4&f=u http://www.dragonflybsd.org/cvsweb/src/etc/csh.cshrc.diff?r1=1.2&r2=1.3&f=u http://www.dragonflybsd.org/cvsweb/src/etc/profile.diff?r1=1.2&r2=1.3&f=u -Matt