aboutsummaryrefslogtreecommitdiff
path: root/bin/ln
diff options
context:
space:
mode:
authorNik Clayton <nik@FreeBSD.org>1999-04-24 10:08:09 +0000
committerNik Clayton <nik@FreeBSD.org>1999-04-24 10:08:09 +0000
commitf3b7e70782b4edf0719130e2f3110d40590a6718 (patch)
treef33b4dae749adbf605ff989b19ef2b7029107339 /bin/ln
parent3333e32aa0648d39817d05f9a727a956ee34e750 (diff)
Notes
Diffstat (limited to 'bin/ln')
-rw-r--r--bin/ln/symlink.718
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/ln/symlink.7 b/bin/ln/symlink.7
index 1ec95c81216d..a0820fe627fb 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