From: Jeremy Allison Date: Tue, 8 Jun 2021 22:17:02 +0000 (-0700) Subject: s3: VFS: catia: Remove catia_sys_acl_get_file(). X-Git-Tag: tevent-0.11.0~494 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71bcd205c45b71f6f7ec901ab4d6aab55d8224fc;p=thirdparty%2Fsamba.git s3: VFS: catia: Remove catia_sys_acl_get_file(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c index f54c5757a68..c1bda1759b3 100644 --- a/source3/modules/vfs_catia.c +++ b/source3/modules/vfs_catia.c @@ -1008,52 +1008,6 @@ catia_fstreaminfo(struct vfs_handle_struct *handle, return NT_STATUS_OK; } -static SMB_ACL_T -catia_sys_acl_get_file(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - SMB_ACL_TYPE_T type, - TALLOC_CTX *mem_ctx) -{ - char *mapped_name = NULL; - struct smb_filename *mapped_smb_fname = NULL; - NTSTATUS status; - SMB_ACL_T ret; - int saved_errno = 0; - - status = catia_string_replace_allocate(handle->conn, - smb_fname->base_name, - &mapped_name, - vfs_translate_to_unix); - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); - return (SMB_ACL_T)NULL; - } - - mapped_smb_fname = synthetic_smb_fname(talloc_tos(), - mapped_name, - NULL, - &smb_fname->st, - smb_fname->twrp, - smb_fname->flags); - if (mapped_smb_fname == NULL) { - TALLOC_FREE(mapped_name); - errno = ENOMEM; - return (SMB_ACL_T)NULL; - } - - ret = SMB_VFS_NEXT_SYS_ACL_GET_FILE(handle, mapped_smb_fname, - type, mem_ctx); - if (ret == (SMB_ACL_T)NULL) { - saved_errno = errno; - } - TALLOC_FREE(mapped_smb_fname); - TALLOC_FREE(mapped_name); - if (saved_errno != 0) { - errno = saved_errno; - } - return ret; -} - static ssize_t catia_getxattr(vfs_handle_struct *handle, const struct smb_filename *smb_fname, @@ -2056,7 +2010,6 @@ static struct vfs_fn_pointers vfs_catia_fns = { .fset_nt_acl_fn = catia_fset_nt_acl, /* POSIX ACL operations. */ - .sys_acl_get_file_fn = catia_sys_acl_get_file, .sys_acl_get_fd_fn = catia_sys_acl_get_fd, .sys_acl_blob_get_fd_fn = catia_sys_acl_blob_get_fd, .sys_acl_set_fd_fn = catia_sys_acl_set_fd,