Module Name: src Committed By: njoly Date: Sat Oct 11 12:06:58 UTC 2014
Modified Files: src/lib/libc/sys: rmdir.2 Log Message: Note that rmdir(2) fails with EINVAL when the path last component is `.' (dot). To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/lib/libc/sys/rmdir.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/sys/rmdir.2 diff -u src/lib/libc/sys/rmdir.2:1.21 src/lib/libc/sys/rmdir.2:1.22 --- src/lib/libc/sys/rmdir.2:1.21 Sat Oct 11 11:50:11 2014 +++ src/lib/libc/sys/rmdir.2 Sat Oct 11 12:06:58 2014 @@ -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.