MFC r290480
Protecting against rm -rf / is now POSIXLY_CORRECT per posix 1003.1 edition 2013. No need anymore to disable the protection if one set the POXILY_CORRECT environment variable. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D4092
This commit is contained in:
parent
f0bd9d7687
commit
7d9f736886
@ -32,7 +32,7 @@
|
||||
.\" @(#)rm.1 8.5 (Berkeley) 12/5/94
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd April 25, 2013
|
||||
.Dd November 7, 2015
|
||||
.Dt RM 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -235,7 +235,7 @@ not the standard error output.
|
||||
The
|
||||
.Nm
|
||||
command conforms to
|
||||
.St -p1003.2 .
|
||||
.St -p1003.1-2013 .
|
||||
.Pp
|
||||
The simplified
|
||||
.Nm unlink
|
||||
|
@ -155,7 +155,6 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
checkdot(argv);
|
||||
if (getenv("POSIXLY_CORRECT") == NULL)
|
||||
checkslash(argv);
|
||||
uid = geteuid();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user