Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2004 03:12:48 +0300
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Protection from the dreaded "rm -fr /"
Message-ID:  <20041006001248.GC1471@gothmog.gr>
In-Reply-To: <20041005103123.C46325@duey.wolves.k12.mo.us>
References:  <20041002081928.GA21439@gothmog.gr> <200410021123.59811.max@love2party.net> <20041002081928.GA21439@gothmog.gr> <20041002083336.GA10355@k7.mavetju> <415E6C4A.1010804@gamersimpact.com> <20041002101842.GA23272@gothmog.gr> <nospam-1096714635.84106@felix.gbch.net> <20041005103123.C46325@duey.wolves.k12.mo.us>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-10-05 10:37, Chris Dillon <cdillon@wolves.k12.mo.us> wrote:
> I think you just nailed it on the head right here... if you say "rm
> -rf /" you probably mean it, but if you say "rm -rf / foo" you
> probably oopsed (pretty good bet, since rm / makes asking to rm foo
> redundant).  How about checking if there is more than one argument,
> and if one of those arguments is "/", fail.  If there is only one
> argument, even if it is "/", assume the user knows what he is doing
> and proceed normally.

I no longer have any interest in working towards any sort of change
related to this thread.  Please do not Cc: me when replying.

Thanks,

Giorgos



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041006001248.GC1471>