HomeFreeBSD

rmdir(2) should return ENOTEMPTY

Description

rmdir(2) should return ENOTEMPTY

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Aug 25 2012, 10:01 PM
Parents
rGc90ea65511b9: Consistent menuconfig name
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGcd38ac58a36e: rmdir(2) should return ENOTEMPTY (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Aug 26 2012, 8:55 PM