diff options
| author | njoly <njoly@NetBSD.org> | 2014-10-11 12:06:58 +0000 |
|---|---|---|
| committer | njoly <njoly@NetBSD.org> | 2014-10-11 12:06:58 +0000 |
| commit | 6549bde36f38acc47ec934a52fdff9a2bf31a65e (patch) | |
| tree | 4956a9b54da585b62b025bc9c973eb84bff936d1 /lib/libc/sys | |
| parent | b8e5193c636792bead7ede7576e1a33e6d1658af (diff) | |
Note that rmdir(2) fails with EINVAL when the path last component is
`.' (dot).
Diffstat (limited to 'lib/libc/sys')
| -rw-r--r-- | lib/libc/sys/rmdir.2 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/rmdir.2 b/lib/libc/sys/rmdir.2 index ee6e1a7022b..f483f1c3891 100644 --- a/lib/libc/sys/rmdir.2 +++ b/lib/libc/sys/rmdir.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: rmdir.2,v 1.21 2014/10/11 11:50:11 njoly Exp $ +.\" $NetBSD: rmdir.2,v 1.22 2014/10/11 12:06:58 njoly Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)rmdir.2 8.1 (Berkeley) 6/4/93 .\" -.Dd June 4, 1993 +.Dd October 11, 2014 .Dt RMDIR 2 .Os .Sh NAME @@ -66,6 +66,9 @@ for a mounted file system. .It Bq Er EFAULT .Fa path points outside the process's allocated address space. +.It Bq Er EINVAL +The last component of the path is +.Ql \&. . .It Bq Er EIO An I/O error occurred while deleting the directory entry or deallocating the inode. |
