summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-12-10 13:04:36 +0000
committerpjd <pjd@FreeBSD.org>2006-12-10 13:04:36 +0000
commit291ec8d867d1ecbb7adb1ce9182c21122d558702 (patch)
tree48417e5efb8fa42626c54bb1a1615227e5374fe1 /lib
parent05d06a47523c82ff3f7bf45e30205328f94b02a6 (diff)
downloadFreeBSD-src-291ec8d867d1ecbb7adb1ce9182c21122d558702.zip
FreeBSD-src-291ec8d867d1ecbb7adb1ce9182c21122d558702.tar.gz
When directory is given as an argument for unlink(2), EPERM is returned
not matter if this is regular directory or a mount point.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/unlink.25
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/sys/unlink.2 b/lib/libc/sys/unlink.2
index 75d9ff6..6c66573 100644
--- a/lib/libc/sys/unlink.2
+++ b/lib/libc/sys/unlink.2
@@ -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.
OpenPOWER on IntegriCloud