Project

General

Profile

Bug #7653

Updated by Andrew Stormont over 4 years ago

Calling unlink() on a directory which isn't empty should fail.    Instead the directory gets removed but its entries don't get freed.    This is similar to #7203, which is specific to freeing empty directories.    How this wasn't caught sooner has me scratching my head. 

 It seems like we have two choices for the errno. 
 ENOTEMPTY - what freebsd would return 
 EEXIST - this seems more illumos-like

Back