summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-04-25 13:55:52 +0000
committerjilles <jilles@FreeBSD.org>2010-04-25 13:55:52 +0000
commit53d6a79d5b1b206b12ea3bac1d619392f1d0a326 (patch)
tree42a761178f46c1f2b1fa662f8313ab7d28ed0b20 /lib/libc
parentae7b50400b7f017ee665112105621796561bd7cc (diff)
downloadFreeBSD-src-53d6a79d5b1b206b12ea3bac1d619392f1d0a326.zip
FreeBSD-src-53d6a79d5b1b206b12ea3bac1d619392f1d0a326.tar.gz
unlinkat(2): unlinkat(AT_REMOVEDIR) fails with ENOTEMPTY like rmdir()
for non-empty directories. POSIX permits both ENOTEMPTY and EEXIST, but we use the clearer ENOTEMPTY, following BSD tradition. MFC after: 1 week
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/unlink.24
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/unlink.2 b/lib/libc/sys/unlink.2
index 141f3d3..bb27085 100644
--- a/lib/libc/sys/unlink.2
+++ b/lib/libc/sys/unlink.2
@@ -28,7 +28,7 @@
.\" @(#)unlink.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd April 10, 2008
+.Dd April 25, 2010
.Dt UNLINK 2
.Os
.Sh NAME
@@ -167,7 +167,7 @@ argument does not specify an absolute path and the
argument is neither
.Dv AT_FDCWD
nor a valid file descriptor open for searching.
-.It Bq Er EEXIST
+.It Bq Er ENOTEMPTY
The
.Fa flag
parameter has the
OpenPOWER on IntegriCloud