1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

s3: VFS: vfs_acl_xattr. Wrap rmdir_acl_common() by acl_xattr_rmdir() so we don't call it directly.

This will allow adding the extra dirfsp parameter to
rmdir_acl_common().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2019-10-04 14:31:59 -07:00 committed by Ralph Boehme
parent b4cbdddfb8
commit 9290510fe4

View File

@ -296,6 +296,12 @@ static int acl_xattr_unlinkat(vfs_handle_struct *handle,
return ret;
}
static int acl_xattr_rmdir(vfs_handle_struct *handle,
const struct smb_filename *smb_dname)
{
return rmdir_acl_common(handle, smb_dname);
}
static NTSTATUS acl_xattr_fget_nt_acl(vfs_handle_struct *handle,
files_struct *fsp,
uint32_t security_info,
@ -334,7 +340,7 @@ static NTSTATUS acl_xattr_fset_nt_acl(vfs_handle_struct *handle,
static struct vfs_fn_pointers vfs_acl_xattr_fns = {
.connect_fn = connect_acl_xattr,
.rmdir_fn = rmdir_acl_common,
.rmdir_fn = acl_xattr_rmdir,
.unlinkat_fn = acl_xattr_unlinkat,
.chmod_fn = chmod_acl_module_common,
.fchmod_fn = fchmod_acl_module_common,