Author: jilles
Date: Wed May  5 22:12:56 2010
New Revision: 207682
URL: http://svn.freebsd.org/changeset/base/207682

Log:
  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.

Modified:
  stable/8/lib/libc/sys/unlink.2
Directory Properties:
  stable/8/lib/libc/   (props changed)
  stable/8/lib/libc/stdtime/   (props changed)

Modified: stable/8/lib/libc/sys/unlink.2
==============================================================================
--- stable/8/lib/libc/sys/unlink.2      Wed May  5 22:07:28 2010        
(r207681)
+++ stable/8/lib/libc/sys/unlink.2      Wed May  5 22:12:56 2010        
(r207682)
@@ -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 pa
 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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to