diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2016-06-01 22:54:46 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2016-06-01 22:54:46 +0000 |
commit | 56b048ef1494a77002fee89d2ad1da59271bee4b (patch) | |
tree | 9f02dabe6de236efa51bb57f24b436484bd5d593 /lib/libc/sys | |
parent | ea2b6fdda3e8ef371bbc41ec7255b563d651f998 (diff) |
rmdir(2) should return EINVAL not EBUSY when trying to remove ".".
This brings us back in conformance with POSIX rmdir(2) and rmdirat(2).
OK kettenis@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/rmdir.2 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/sys/rmdir.2 b/lib/libc/sys/rmdir.2 index 02f9947be48..398e97534c6 100644 --- a/lib/libc/sys/rmdir.2 +++ b/lib/libc/sys/rmdir.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rmdir.2,v 1.13 2015/01/19 15:54:11 millert Exp $ +.\" $OpenBSD: rmdir.2,v 1.14 2016/06/01 22:54:45 millert Exp $ .\" $NetBSD: rmdir.2,v 1.7 1995/02/27 12:36:30 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)rmdir.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: January 19 2015 $ +.Dd $Mdocdate: June 1 2016 $ .Dt RMDIR 2 .Os .Sh NAME @@ -99,7 +99,10 @@ immutable or append-only flag set (see .Xr chflags 2 ) . .It Bq Er EBUSY The directory to be removed is the mount point -for a mounted file system or the current directory. +for a mounted file system. +.It Bq Er EINVAL +The last path element of the directory to be removed consists of +.Ql \&. . .It Bq Er EIO An I/O error occurred while deleting the directory entry or deallocating the inode. |