rmdir(2) should return ENOTEMPTY
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 25 Aug 2012 22:01:39 +0000 (15:01 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 26 Aug 2012 20:55:45 +0000 (13:55 -0700)
Under Solaris the behavior for rmdir(2) is to return EEXIST when
a directory still contains entries.  However, on Linux ENOTEMPTY
is the expected return value with EEXIST being technically allowed.
According to rmdir(2):

ENOTEMPTY
   pathname contains entries other than . and .. ; or, pathname has
   ..  as its final component.  POSIX.1-2001 also allows EEXIST for
   this condition.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #895


No differences found