1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

Note that rmdir(2) does not follow symbolic links.

This commit is contained in:
John Polstra 2001-01-24 23:49:59 +00:00
parent 29d3cf45a7
commit 1718c8b735
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71606

View File

@ -106,13 +106,14 @@ the system call
would return a file descriptor to the file would return a file descriptor to the file
.Dq afile . .Dq afile .
.Pp .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. on the symbolic link itself.
They are: They are:
.Xr lchown 2 , .Xr lchown 2 ,
.Xr lstat 2 , .Xr lstat 2 ,
.Xr readlink 2 , .Xr readlink 2 ,
.Xr rename 2 , .Xr rename 2 ,
.Xr rmdir 2 ,
and and
.Xr unlink 2 . .Xr unlink 2 .
Because Because
@ -120,6 +121,10 @@ Because
is an alias for is an alias for
.Xr unlink 2 , .Xr unlink 2 ,
it also does not follow symbolic links. 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 .Pp
The owner and group of an existing symbolic link can be changed by The owner and group of an existing symbolic link can be changed by
means of the means of the