Don't allow "rm -rf /"
authordaniel <daniel@openbsd.org>
Sun, 11 Oct 2015 03:08:46 +0000 (03:08 +0000)
committerdaniel <daniel@openbsd.org>
Sun, 11 Oct 2015 03:08:46 +0000 (03:08 +0000)
commit9e5c57050e599664a9e15aa2e9f6e98ba04541e7
tree326625d7b33508d2fa1ae2fcb1fc27fc35b3b686
parent5c17cc015cbf5bf9cfba519a8af2da49bb63bc91
Don't allow "rm -rf /"

Patch from Theo Buehler who was inspired by watching Bryan Cantrill
in BSD Now 103.

Minor tweak from me to turn the complained variables into flags instead
of counters.

"i think it's ok" tedu@
"this isn't 1980 anymore" deraadt@
ok millert@
bin/rm/rm.1
bin/rm/rm.c