Fix bug #8254 - "acl check permissions = no" does not work in all cases
authorJeremy Allison <jra@samba.org>
Thu, 23 Jun 2011 21:42:27 +0000 (14:42 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Aug 2011 19:09:29 +0000 (21:09 +0200)
commitf575f3d88eccc298e512c796dd5b45416b8ba389
tree074da1b30e5e9ee913219bc0811483ae8141d512
parentd89e172a785879372dacf3e8ef79d6dafc899658
Fix bug #8254 - "acl check permissions = no" does not work in all cases

Move lp_acl_check_permissions() into can_delete_file_in_directory()
where it makes sense. Remove ACL check when requesting DELETE_ACCESS
when lp_acl_check_permissions is false.

Thanks to John Janosik @ IBM for noticing this.
(cherry picked from commit 83357ecf6adafe3d23ada705e79c3af25ad4e734)
source3/smbd/file_access.c
source3/smbd/open.c