vfs_acl_common: check for ignore_system_acls before fetching filesystem ACL
authorRalph Boehme <slow@samba.org>
Wed, 24 Aug 2016 08:43:47 +0000 (10:43 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 21 Sep 2016 09:15:08 +0000 (11:15 +0200)
commit5bc32feee193982fb1627400289a03ce081cdafe
treeadb3daf350f84dd39e38746240729d7eb3a9db28
parenta0fd7a5a17cca97312509e0046b6dc6510dc4bbc
vfs_acl_common: check for ignore_system_acls before fetching filesystem ACL

If ignore_system_acls is set and we're synthesizing a default ACL, we
were fetching the filesystem ACL just to free it again. This change
avoids this.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12177

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(backported from commit f46179ef7310959af095b0ea6234df7523d15457)
source3/modules/vfs_acl_common.c