rm -I patch (Re: Protection from the dreaded "rm -fr /")

Matthew Dillon dillon at apollo.backplane.com
Tue Oct 5 23:40:06 PDT 2004


    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



More information about the freebsd-hackers mailing list