When directory is given as an argument for unlink(2), EPERM is returned
not matter if this is regular directory or a mount point.
This commit is contained in:
parent
d2bfc051fc
commit
ba4b9e0121
@ -32,7 +32,7 @@
|
||||
.\" @(#)unlink.2 8.1 (Berkeley) 6/4/93
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd December 9, 2006
|
||||
.Dd December 10, 2006
|
||||
.Dt UNLINK 2
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -97,9 +97,6 @@ set.
|
||||
The directory containing the file is marked sticky,
|
||||
and neither the containing directory nor the file to be removed
|
||||
are owned by the effective user ID.
|
||||
.It Bq Er EBUSY
|
||||
The entry to be unlinked is the mount point for a
|
||||
mounted file system.
|
||||
.It Bq Er EIO
|
||||
An I/O error occurred while deleting the directory entry
|
||||
or deallocating the inode.
|
||||
|
Loading…
x
Reference in New Issue
Block a user