From: Brian Behlendorf Date: Sat, 25 Aug 2012 22:01:39 +0000 (-0700) Subject: rmdir(2) should return ENOTEMPTY X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=cd38ac58a36e51cb3d627da57bfb5246e70f276d;hp=cd38ac58a36e51cb3d627da57bfb5246e70f276d;p=zfs.git 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 Closes #895 ---