From 8a6e84287e2f2b606d39172e1c7f8f351d7774fb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 8 Jun 2021 15:26:04 -0700 Subject: [PATCH] s3: VFS: unityed_media: Remove um_sys_acl_get_file(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_unityed_media.c | 44 ----------------------------- 1 file changed, 44 deletions(-) diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c index aa264e04240..e99d56a4f84 100644 --- a/source3/modules/vfs_unityed_media.c +++ b/source3/modules/vfs_unityed_media.c @@ -1469,46 +1469,6 @@ err: return status; } -static SMB_ACL_T um_sys_acl_get_file(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - SMB_ACL_TYPE_T type, - TALLOC_CTX *mem_ctx) -{ - SMB_ACL_T ret; - int saved_errno = 0; - struct smb_filename *client_fname = NULL; - int status; - - DEBUG(10, ("Entering um_sys_acl_get_file\n")); - - if (!is_in_media_files(smb_fname->base_name)) { - return SMB_VFS_NEXT_SYS_ACL_GET_FILE(handle, smb_fname, - type, mem_ctx); - } - - status = alloc_get_client_smb_fname(handle, - talloc_tos(), - smb_fname, - &client_fname); - if (status != 0) { - ret = (SMB_ACL_T)NULL; - goto err; - } - - ret = SMB_VFS_NEXT_SYS_ACL_GET_FILE(handle, client_fname, - type, mem_ctx); - -err: - if (ret == (SMB_ACL_T)NULL) { - saved_errno = errno; - } - TALLOC_FREE(client_fname); - if (saved_errno != 0) { - errno = saved_errno; - } - return ret; -} - static ssize_t um_getxattr(struct vfs_handle_struct *handle, const struct smb_filename *smb_fname, const char *name, @@ -1613,10 +1573,6 @@ static struct vfs_fn_pointers vfs_um_fns = { .realpath_fn = um_realpath, .chflags_fn = um_chflags, - /* POSIX ACL operations. */ - - .sys_acl_get_file_fn = um_sys_acl_get_file, - /* EA operations. */ .getxattr_fn = um_getxattr, .getxattrat_send_fn = vfs_not_implemented_getxattrat_send, -- 2.47.3