summaryrefslogtreecommitdiffstats
path: root/bin/ln/symlink.7
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2001-01-24 23:49:59 +0000
committerjdp <jdp@FreeBSD.org>2001-01-24 23:49:59 +0000
commit8c6da5a7affcd5b96064c25611a21576dc165aaf (patch)
tree2ad3a572f6a80fbce826f746696580dc8daaec1f /bin/ln/symlink.7
parente532f9ac32d3f4e8e29dcb6df1718d4a443dac41 (diff)
downloadFreeBSD-src-8c6da5a7affcd5b96064c25611a21576dc165aaf.zip
FreeBSD-src-8c6da5a7affcd5b96064c25611a21576dc165aaf.tar.gz
Note that rmdir(2) does not follow symbolic links.
Diffstat (limited to 'bin/ln/symlink.7')
-rw-r--r--bin/ln/symlink.77
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ln/symlink.7 b/bin/ln/symlink.7
index 4b2113b..1fa61c2 100644
--- a/bin/ln/symlink.7
+++ b/bin/ln/symlink.7
@@ -106,13 +106,14 @@ the system call
would return a file descriptor to the file
.Dq afile .
.Pp
-There are five system calls that do not follow links, and which operate
+There are six system calls that do not follow links, and which operate
on the symbolic link itself.
They are:
.Xr lchown 2 ,
.Xr lstat 2 ,
.Xr readlink 2 ,
.Xr rename 2 ,
+.Xr rmdir 2 ,
and
.Xr unlink 2 .
Because
@@ -120,6 +121,10 @@ Because
is an alias for
.Xr unlink 2 ,
it also does not follow symbolic links.
+When
+.Xr rmdir 2
+is applied to a symbolic link, it fails with the error
+.Er ENOTDIR .
.Pp
The owner and group of an existing symbolic link can be changed by
means of the
OpenPOWER on IntegriCloud