r9009: directory not empty is not an error on failure to delete directory in delete...
authorAndrew Tridgell <tridge@samba.org>
Wed, 3 Aug 2005 17:52:33 +0000 (17:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:31:06 +0000 (13:31 -0500)
source/ntvfs/posix/pvfs_open.c

index 3ae8e2150f57422a2f823d9adbd83f20a7bea609..d3b9681b58b1b006b57a6ee9aeb2db29c1cdf77d 100644 (file)
@@ -75,7 +75,7 @@ static int pvfs_dir_handle_destructor(void *p)
                        DEBUG(0,("Warning: xattr rmdir hook failed for '%s' - %s\n",
                                 h->name->full_name, nt_errstr(status)));
                }
-               if (rmdir(h->name->full_name) != 0) {
+               if (rmdir(h->name->full_name) != 0 && errno != ENOTEMPTY) {
                        DEBUG(0,("pvfs_close: failed to rmdir '%s' - %s\n", 
                                 h->name->full_name, strerror(errno)));
                }