diff options
author | jdp <jdp@FreeBSD.org> | 2001-01-24 23:49:59 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 2001-01-24 23:49:59 +0000 |
commit | 8c6da5a7affcd5b96064c25611a21576dc165aaf (patch) | |
tree | 2ad3a572f6a80fbce826f746696580dc8daaec1f /bin | |
parent | e532f9ac32d3f4e8e29dcb6df1718d4a443dac41 (diff) | |
download | FreeBSD-src-8c6da5a7affcd5b96064c25611a21576dc165aaf.zip FreeBSD-src-8c6da5a7affcd5b96064c25611a21576dc165aaf.tar.gz |
Note that rmdir(2) does not follow symbolic links.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ln/symlink.7 | 7 |
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 |