Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Note that rmdir(2) fails with EINVAL when the p...



details:   https://anonhg.NetBSD.org/src/rev/e59751e7950a
branches:  trunk
changeset: 332900:e59751e7950a
user:      njoly <njoly%NetBSD.org@localhost>
date:      Sat Oct 11 12:06:58 2014 +0000

description:
Note that rmdir(2) fails with EINVAL when the path last component is
`.' (dot).

diffstat:

 lib/libc/sys/rmdir.2 |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 1cc61387342b -r e59751e7950a lib/libc/sys/rmdir.2
--- a/lib/libc/sys/rmdir.2      Sat Oct 11 12:01:27 2014 +0000
+++ b/lib/libc/sys/rmdir.2      Sat Oct 11 12:06:58 2014 +0000
@@ -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 @@
 .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.



Home | Main Index | Thread Index | Old Index