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

View File

@ -80,8 +80,12 @@ If the
option is specified, no symbolic links are followed. option is specified, no symbolic links are followed.
This is the default. This is the default.
.It Fl R .It Fl R
Change the user ID and/or the group ID for the file hierarchies rooted Change the user ID and/or the group ID of the specified directory trees
in the files instead of just the files themselves. (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 .It Fl f
Don't report any failure to change file owner or group, nor modify Don't report any failure to change file owner or group, nor modify
the exit status to reflect such failures. the exit status to reflect such failures.