summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/rmdir.2
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2006-01-22 19:49:37 +0000
committertruckman <truckman@FreeBSD.org>2006-01-22 19:49:37 +0000
commitbfe1f15bac88af5227cf0b1ced01850deace5579 (patch)
treecdc3bdfe6333b0f627ebf3c2d871ccaf10e3946e /lib/libc/sys/rmdir.2
parent7ef6769a305dc959cce68afe547680fe8e76d4c9 (diff)
downloadFreeBSD-src-bfe1f15bac88af5227cf0b1ced01850deace5579.zip
FreeBSD-src-bfe1f15bac88af5227cf0b1ced01850deace5579.tar.gz
Back out the previous change to rename.2. The previous rename()
behaviour of returning EINVAL when ".." is passed as either argument has been restored. rmdir("..") now returns EINVAL instead of EPERM. Document the previously undocumented behaviour of rmdir(".") returning EINVAL as required by POSIX and SUSv3. Bump the man page change date. undelete("..") now returns EINVAL instead of EPERM. Bump the man page change date. MFC after: 3 days
Diffstat (limited to 'lib/libc/sys/rmdir.2')
-rw-r--r--lib/libc/sys/rmdir.28
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/sys/rmdir.2 b/lib/libc/sys/rmdir.2
index 187b977..f98b952 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 June 4, 1993
+.Dd January 22, 2006
.Dt RMDIR 2
.Os
.Sh NAME
@@ -85,8 +85,10 @@ to be removed.
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.
-.It Bq Er EPERM
-After expanding any symbolic links, the last component of the path is
+.It Bq Er EINVAL
+The last component of the path is
+.Ql .\&
+or
.Ql .. .
.It Bq Er EBUSY
The directory to be removed is the mount point
OpenPOWER on IntegriCloud