More for #9374 - Allow smb2.acls torture test to pass against smbd with a POSIX ACLs...
authorJeremy Allison <jra@samba.org>
Tue, 13 Nov 2012 00:26:25 +0000 (16:26 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 3 Dec 2012 19:22:42 +0000 (20:22 +0100)
commitcc17ce366a459bf1cb2207a45e5528ea0167b323
treeeb7dd46b41d59a5eb8169c0aa8246c7b0f3937d6
parent32892d6357469287bf9594b269bde5b9ffabd54e
More for #9374 - Allow smb2.acls torture test to pass against smbd with a POSIX ACLs backend.

Change can_delete_directory() to can_delete_directory_fsp(), as
we only ever call this from an open directory file handle.

This allows us to use OpenDir_fsp() instead of OpenDir().
OpenDir() re-checks the ACL on the directory, which may
refuse DIR_LIST permissions. OpenDir_fsp() does not. As
this is a file-server internal check to see if the directory
actually contains any files before setting delete on close,
we can ignore the ACL here (Windows does).
source3/include/proto.h
source3/lib/dummysmbd.c
source3/locking/locking.c
source3/smbd/dir.c