diff options
author | Daniel Dickman <daniel@cvs.openbsd.org> | 2015-10-11 03:08:47 +0000 |
---|---|---|
committer | Daniel Dickman <daniel@cvs.openbsd.org> | 2015-10-11 03:08:47 +0000 |
commit | 20b5117dc17ca67292a67e1c2cd35b393135cad8 (patch) | |
tree | 3f1e13f3009104d98e09aa02fba639e9f55cfaa4 /bin/rm/rm.1 | |
parent | 31a9155b0e47397dc9778dc10d4b29fed247cdf7 (diff) |
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@
Diffstat (limited to 'bin/rm/rm.1')
-rw-r--r-- | bin/rm/rm.1 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/rm/rm.1 b/bin/rm/rm.1 index f69a597ca56..a6a56c825bc 100644 --- a/bin/rm/rm.1 +++ b/bin/rm/rm.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rm.1,v 1.37 2014/05/25 19:07:36 jmc Exp $ +.\" $OpenBSD: rm.1,v 1.38 2015/10/11 03:08:46 daniel Exp $ .\" $NetBSD: rm.1,v 1.8 1995/07/25 19:37:30 jtc Exp $ .\" .\" Copyright (c) 1990, 1993, 1994 @@ -33,7 +33,7 @@ .\" .\" @(#)rm.1 8.5 (Berkeley) 12/5/94 .\" -.Dd $Mdocdate: May 25 2014 $ +.Dd $Mdocdate: October 11 2015 $ .Dt RM 1 .Os .Sh NAME @@ -102,6 +102,7 @@ The utility removes symbolic links, not the files referenced by the links. .Pp It is an error to attempt to remove the files +.Dq / , .Dq \&. or .Dq .. . |