summaryrefslogtreecommitdiffstats
path: root/bin/chmod/chmod.1
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2015-06-01 09:04:57 +0000
committersmh <smh@FreeBSD.org>2015-06-01 09:04:57 +0000
commit32367258066d8eaccf6cc78014ae74b397db7e4b (patch)
tree98f751cb965bcce0515d566fa6ed7a433f62a1b8 /bin/chmod/chmod.1
parent082794a940f23e7eb4f7f03d5fbe9ba4fdd1fe60 (diff)
downloadFreeBSD-src-32367258066d8eaccf6cc78014ae74b397db7e4b.zip
FreeBSD-src-32367258066d8eaccf6cc78014ae74b397db7e4b.tar.gz
MFC r282208:
Standardise chmod, chflags, chown and chgrp recursive symlink processing Relnotes: Yes Sponsored by: Multiplay
Diffstat (limited to 'bin/chmod/chmod.1')
-rw-r--r--bin/chmod/chmod.114
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/chmod/chmod.1 b/bin/chmod/chmod.1
index 34a1ff0..7efaabc 100644
--- a/bin/chmod/chmod.1
+++ b/bin/chmod/chmod.1
@@ -32,7 +32,7 @@
.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
.\" $FreeBSD$
.\"
-.Dd January 26, 2009
+.Dd April 20, 2015
.Dt CHMOD 1
.Os
.Sh NAME
@@ -63,9 +63,9 @@ nor modify the exit status to reflect such failures.
.It Fl H
If the
.Fl R
-option is specified, symbolic links on the command line are followed.
-(Symbolic links encountered in the tree traversal are not followed by
-default.)
+option is specified, symbolic links on the command line are followed
+and hence unaffected by the command.
+(Symbolic links encountered during tree traversal are not followed.)
.It Fl h
If the file is a symbolic link, change the mode of the link itself
rather than the file that the link points to.
@@ -79,8 +79,12 @@ If the
option is specified, no symbolic links are followed.
This is the default.
.It Fl R
-Change the modes of the file hierarchies rooted in the files
+Change the modes of the file hierarchies rooted in the files,
instead of just the files themselves.
+Beware of unintentionally matching the
+.Dq Pa ".."
+hard link to the parent directory when using wildcards like
+.Dq Li ".*" .
.It Fl v
Cause
.Nm
OpenPOWER on IntegriCloud