summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/rmdir.2
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-12-09 19:44:38 +0000
committerpjd <pjd@FreeBSD.org>2006-12-09 19:44:38 +0000
commit1960fa1f5d6387f5a911636ba0afda586f8e2b62 (patch)
treea42f24d2ee1725808474b6863b0d668dfd67edfe /lib/libc/sys/rmdir.2
parent94128f1de10f6712cef7c502d8b3c2eb0f4150d1 (diff)
downloadFreeBSD-src-1960fa1f5d6387f5a911636ba0afda586f8e2b62.zip
FreeBSD-src-1960fa1f5d6387f5a911636ba0afda586f8e2b62.tar.gz
- If the directory to be removed has its immutable, undeletable or append-only
flag set, rmdir(2) returns EPERM. - If the parent directory of the directory to be removed has its immutable or append-only flag set, rmdir(2) returns EPERM.
Diffstat (limited to 'lib/libc/sys/rmdir.2')
-rw-r--r--lib/libc/sys/rmdir.210
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/sys/rmdir.2 b/lib/libc/sys/rmdir.2
index f98b952..6cad537 100644
--- a/lib/libc/sys/rmdir.2
+++ b/lib/libc/sys/rmdir.2
@@ -32,7 +32,7 @@
.\" @(#)rmdir.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd January 22, 2006
+.Dd December 9, 2006
.Dt RMDIR 2
.Os
.Sh NAME
@@ -82,6 +82,14 @@ Search permission is denied for a component of the path prefix.
Write permission is denied on the directory containing the link
to be removed.
.It Bq Er EPERM
+The directory to be removed has its immutable, undeletable or append-only flag
+set, see the
+.Xr chflags 2
+manual page for more information.
+.It Bq Er EPERM
+The parent directory of the directory to be removed has its immutable or
+append-only flag set.
+.It Bq Er EPERM
The directory containing the directory to be removed is marked sticky,
and neither the containing directory nor the directory to be removed
are owned by the effective user ID.
OpenPOWER on IntegriCloud