diff options
-rw-r--r-- | source4/ntvfs/posix/pvfs_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c index 3ae8e2150f..d3b9681b58 100644 --- a/source4/ntvfs/posix/pvfs_open.c +++ b/source4/ntvfs/posix/pvfs_open.c @@ -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))); } |