summaryrefslogtreecommitdiffstats
path: root/bin/ln
diff options
context:
space:
mode:
authornik <nik@FreeBSD.org>1999-04-24 10:08:09 +0000
committernik <nik@FreeBSD.org>1999-04-24 10:08:09 +0000
commit34378e1d7c1bc4aa9323c6613d96f005bc8241cb (patch)
treed1714818a66fec1d6d8e88d65d3718897c58db3e /bin/ln
parentb7deac3b242b710521e100e40db578d37734d871 (diff)
downloadFreeBSD-src-34378e1d7c1bc4aa9323c6613d96f005bc8241cb.zip
FreeBSD-src-34378e1d7c1bc4aa9323c6613d96f005bc8241cb.tar.gz
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
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 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
OpenPOWER on IntegriCloud