1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3: VFS: vfs_acl_xattr: Don't call unlink_acl_common() directly.

Use a wrapper function so we can change the parameters.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2019-09-16 17:44:33 -07:00 committed by Ralph Boehme
parent 96aeaed858
commit 6ef40bdb94

View File

@ -278,6 +278,12 @@ static int connect_acl_xattr(struct vfs_handle_struct *handle,
return 0;
}
static int acl_xattr_unlink(vfs_handle_struct *handle,
const struct smb_filename *smb_fname)
{
return unlink_acl_common(handle, smb_fname);
}
static int acl_xattr_unlinkat(vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
@ -332,7 +338,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,
.unlink_fn = unlink_acl_common,
.unlink_fn = acl_xattr_unlink,
.unlinkat_fn = acl_xattr_unlinkat,
.chmod_fn = chmod_acl_module_common,
.fchmod_fn = fchmod_acl_module_common,