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>
This commit is contained in:
Giorgos Keramidas 2003-01-26 02:40:23 +00:00
parent 6c5b0e25a0
commit 0f2e01e04d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109845

View File

@ -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.