summaryrefslogtreecommitdiff
path: root/bin/chmod/chmod.1
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-12-13 20:59:25 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-12-13 20:59:25 +0000
commita7173ea656cce26a51dc66641a446b063e065ebe (patch)
treee9a18a752ceead02dd624d3a31c09899523a57b2 /bin/chmod/chmod.1
parent561d3fa7762bc8ba8b9d8c11cf58628bc7dccc80 (diff)
Correct the handling of symbolic links by chmod/chgrp/chown/chflags,
making them more resistant to TOCTOU race conditions too. ok tobias@
Diffstat (limited to 'bin/chmod/chmod.1')
-rw-r--r--bin/chmod/chmod.113
1 files changed, 4 insertions, 9 deletions
diff --git a/bin/chmod/chmod.1 b/bin/chmod/chmod.1
index 11749ace923..346da0b4fc8 100644
--- a/bin/chmod/chmod.1
+++ b/bin/chmod/chmod.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chmod.1,v 1.38 2014/01/25 15:43:40 jmc Exp $
+.\" $OpenBSD: chmod.1,v 1.39 2014/12/13 20:59:24 guenther Exp $
.\" $NetBSD: chmod.1,v 1.8 1995/03/21 09:02:07 cgd Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
@@ -33,7 +33,7 @@
.\"
.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
.\"
-.Dd $Mdocdate: January 25 2014 $
+.Dd $Mdocdate: December 13 2014 $
.Dt CHMOD 1
.Os
.Sh NAME
@@ -80,13 +80,8 @@ change the mode of the directory and all the files and directories
in the file hierarchy below it.
.El
.Pp
-Symbolic links do not have modes, so unless the
-.Fl H
-or
-.Fl L
-option is set,
-.Nm
-on a symbolic link always succeeds and has no effect.
+Symbolic links have modes,
+but those modes have no effect on the kernel's access checks.
The
.Fl H ,
.Fl L ,