summaryrefslogtreecommitdiff
path: root/bin/chmod/chmod.1
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-12-31 23:38:17 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-12-31 23:38:17 +0000
commit80f972faa93ef900747a1135cda3199eeebb8072 (patch)
treead637adb6508ed5b2f925e4b00fde669dbb287da /bin/chmod/chmod.1
parentd96eca3fba6c111da9303d022e3ef8f72f22c3ff (diff)
Document the -h option for chmod and chflags, rewording the chgrp(1) and
chown(8) manpages to be consistent and clearer about it as well.
Diffstat (limited to 'bin/chmod/chmod.1')
-rw-r--r--bin/chmod/chmod.113
1 files changed, 11 insertions, 2 deletions
diff --git a/bin/chmod/chmod.1 b/bin/chmod/chmod.1
index b41d5641ae2..3f979fa5c14 100644
--- a/bin/chmod/chmod.1
+++ b/bin/chmod/chmod.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chmod.1,v 1.40 2015/03/13 19:58:40 jmc Exp $
+.\" $OpenBSD: chmod.1,v 1.41 2015/12/31 23:38:16 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: March 13 2015 $
+.Dd $Mdocdate: December 31 2015 $
.Dt CHMOD 1
.Os
.Sh NAME
@@ -41,6 +41,7 @@
.Nd change file modes
.Sh SYNOPSIS
.Nm chmod
+.Op Fl h
.Oo
.Fl R
.Op Fl H | L | P
@@ -63,6 +64,14 @@ If the
.Fl R
option is also specified, symbolic links on the command line are followed.
Symbolic links encountered in the tree traversal are not followed.
+.It Fl h
+Treat symbolic links like other files: modify links instead of
+following them.
+The
+.Fl h
+and
+.Fl R
+options are mutually exclusive.
.It Fl L
If the
.Fl R