diff options
author | Ralph Boehme <slow@samba.org> | 2016-08-24 10:01:17 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-08-30 21:12:25 +0200 |
commit | 61c3d2124fb1a180fae4c8c0b5ab5b32bd56c8ad (patch) | |
tree | ccafae6acb2fdd981b98315ecc5346f0da2741e8 /source3/modules/vfs_acl_tdb.c | |
parent | 0de5a128cee90694979d074c2590ddbca0071e82 (diff) | |
download | samba-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.c | 7 |
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' " |