Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 2010 22:12:56 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r207682 - stable/8/lib/libc/sys
Message-ID:  <201005052212.o45MCurp078967@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005052212.o45MCurp078967>