summaryrefslogtreecommitdiffstats
path: root/usr.sbin/chown
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2003-01-26 02:40:23 +0000
committerkeramida <keramida@FreeBSD.org>2003-01-26 02:40:23 +0000
commit42e98481165e30577f9ca185494e1c10a2ca1df9 (patch)
tree1c388cb4514864f7acdac69b94dbe59dac2463a3 /usr.sbin/chown
parent2215fbe46cad96101489aa945aae93d3fa8fa86a (diff)
downloadFreeBSD-src-42e98481165e30577f9ca185494e1c10a2ca1df9.zip
FreeBSD-src-42e98481165e30577f9ca185494e1c10a2ca1df9.tar.gz
Reword the description of -R a bit and add a note about being careful
when -R is combined with patterns that might match ".." (like ".*"). PR: 46415 Submitted by: Gary W. Swearingen <swear@attbi.com>
Diffstat (limited to 'usr.sbin/chown')
-rw-r--r--usr.sbin/chown/chown.88
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/chown/chown.8 b/usr.sbin/chown/chown.8
index 1add3da..364ac88 100644
--- a/usr.sbin/chown/chown.8
+++ b/usr.sbin/chown/chown.8
@@ -80,8 +80,12 @@ If the
option is specified, no symbolic links are followed.
This is the default.
.It Fl R
-Change the user ID and/or the group ID for the file hierarchies rooted
-in the files instead of just the files themselves.
+Change the user ID and/or the group ID of the specified directory trees
+(recursively, including their contents) and files.
+Beware of unintentionally matching the
+.Dq Pa ".."
+hard link to the parent directory when using wildcards like
+.Dq Li ".*" .
.It Fl f
Don't report any failure to change file owner or group, nor modify
the exit status to reflect such failures.
OpenPOWER on IntegriCloud