summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_acl_tdb.c
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2016-08-24 10:01:17 +0200
committerJeremy Allison <jra@samba.org>2016-08-30 21:12:25 +0200
commit61c3d2124fb1a180fae4c8c0b5ab5b32bd56c8ad (patch)
treeccafae6acb2fdd981b98315ecc5346f0da2741e8 /source3/modules/vfs_acl_tdb.c
parent0de5a128cee90694979d074c2590ddbca0071e82 (diff)
downloadsamba-61c3d2124fb1a180fae4c8c0b5ab5b32bd56c8ad.tar.gz
vfs_acl_tdb|xattr: use a config handle
Better for performance and a subsequent commit will add one more option where this will pay off. 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>
Diffstat (limited to 'source3/modules/vfs_acl_tdb.c')
-rw-r--r--source3/modules/vfs_acl_tdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/modules/vfs_acl_tdb.c b/source3/modules/vfs_acl_tdb.c
index e4c84623801..0c92b729b3b 100644
--- a/source3/modules/vfs_acl_tdb.c
+++ b/source3/modules/vfs_acl_tdb.c
@@ -308,6 +308,7 @@ static int connect_acl_tdb(struct vfs_handle_struct *handle,
const char *user)
{
int ret = SMB_VFS_NEXT_CONNECT(handle, service, user);
+ bool ok;
if (ret < 0) {
return ret;
@@ -318,6 +319,12 @@ static int connect_acl_tdb(struct vfs_handle_struct *handle,
return -1;
}
+ ok = init_acl_common_config(handle);
+ if (!ok) {
+ DBG_ERR("init_acl_common_config failed\n");
+ return -1;
+ }
+
/* Ensure we have the parameters correct if we're
* using this module. */
DEBUG(2,("connect_acl_tdb: setting 'inherit acls = true' "