diff options
author | jilles <jilles@FreeBSD.org> | 2010-05-05 22:12:56 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-05-05 22:12:56 +0000 |
commit | dced090d8c1e52f4b2beeccd22da467066a3f03b (patch) | |
tree | 5c2fdb2bd519d4e8f7321047bc78b9bf61d690ac /lib | |
parent | 91722e5e54cdcd3b5c4ee49118ba83663b9bd144 (diff) | |
download | FreeBSD-src-dced090d8c1e52f4b2beeccd22da467066a3f03b.zip FreeBSD-src-dced090d8c1e52f4b2beeccd22da467066a3f03b.tar.gz |
MFC r207190: 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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/unlink.2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/unlink.2 b/lib/libc/sys/unlink.2 index 41a2288..ac18971 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 @@ -165,7 +165,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 |