From 34378e1d7c1bc4aa9323c6613d96f005bc8241cb Mon Sep 17 00:00:00 2001 From: nik Date: Sat, 24 Apr 1999 10:08:09 +0000 Subject: Revert part of the previous commit. Keep the example that shows how the "-h" flag is used, but use "chown" in the example instead of "file". Prompted by: bde --- bin/ln/symlink.7 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'bin/ln') diff --git a/bin/ln/symlink.7 b/bin/ln/symlink.7 index 1ec95c8..a0820fe 100644 --- a/bin/ln/symlink.7 +++ b/bin/ln/symlink.7 @@ -160,6 +160,24 @@ is included in this rule, while the command is not. (The latter is described in the third area, below.) .Pp +If it is explicitly intended that the command operate on the symbolic +link instead of following the symbolic link, e.g., it is desired that +.Dq Li "chown slink" +change the ownership of the file that +.Dq Li slink +is, whether it is a symbolic link or not, the +.Fl h +option should be used. +In the above example, +.Dq Li "chown root slink" +would change the ownership of the file referenced by +.Dq Li slink , +while +.Dq Li "chown -h root slink" +would change the ownership of +.Dq Li slink +itself. +.Pp There are four exceptions to this rule. The .Xr mv 1 -- cgit v1.1