From 0f2e01e04dd7f7384dc80817b473c5f733fd0eda Mon Sep 17 00:00:00 2001 From: Giorgos Keramidas Date: Sun, 26 Jan 2003 02:40:23 +0000 Subject: [PATCH] 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 --- usr.sbin/chown/chown.8 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.sbin/chown/chown.8 b/usr.sbin/chown/chown.8 index 1add3daf65be..364ac883f050 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.