More for #9374 - Allow smb2.acls torture test to pass against smbd with a POSIX ACLs...
commit3da9c3d89986ab7c531560e56e9b2c29c26f7a72
authorJeremy Allison <jra@samba.org>
Tue, 13 Nov 2012 00:26:25 +0000 (12 16:26 -0800)
committerKarolin Seeger <kseeger@samba.org>
Thu, 6 Dec 2012 08:40:25 +0000 (6 09:40 +0100)
tree356ae03c2fd1cffbdd62c6e1eb74eefb5fe2182f
parent3c94475a06472c71ec364d4c3e098c9740f702bd
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).
(cherry picked from commit cc17ce366a459bf1cb2207a45e5528ea0167b323)
source3/include/proto.h
source3/lib/dummysmbd.c
source3/locking/locking.c
source3/smbd/dir.c