From: Jeremy Allison Date: Wed, 23 Jun 2021 00:56:11 +0000 (-0700) Subject: s3: VFS: catia: Remove catia_getxattr. X-Git-Tag: tevent-0.11.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eafc108bcbaf6340db1841909f228debcb017209;p=thirdparty%2Fsamba.git s3: VFS: catia: Remove catia_getxattr. No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c index 22b0696e73d..bf1c1cd425a 100644 --- a/source3/modules/vfs_catia.c +++ b/source3/modules/vfs_catia.c @@ -972,65 +972,6 @@ catia_fstreaminfo(struct vfs_handle_struct *handle, return NT_STATUS_OK; } -static ssize_t -catia_getxattr(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - const char *name, - void *value, - size_t size) -{ - struct smb_filename *mapped_smb_fname = NULL; - char *mapped_name = NULL; - char *mapped_ea_name = NULL; - NTSTATUS status; - ssize_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 -1; - } - - status = catia_string_replace_allocate(handle->conn, - name, &mapped_ea_name, vfs_translate_to_unix); - if (!NT_STATUS_IS_OK(status)) { - TALLOC_FREE(mapped_name); - errno = map_errno_from_nt_status(status); - return -1; - } - - 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); - TALLOC_FREE(mapped_ea_name); - errno = ENOMEM; - return -1; - } - - ret = SMB_VFS_NEXT_GETXATTR(handle, mapped_smb_fname, - mapped_ea_name, value, size); - if (ret == -1) { - saved_errno = errno; - } - TALLOC_FREE(mapped_name); - TALLOC_FREE(mapped_ea_name); - TALLOC_FREE(mapped_smb_fname); - if (saved_errno != 0) { - errno = saved_errno; - } - - return ret; -} - static int catia_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_STRUCT_STAT *sbuf) @@ -1978,7 +1919,6 @@ static struct vfs_fn_pointers vfs_catia_fns = { .sys_acl_set_fd_fn = catia_sys_acl_set_fd, /* EA operations. */ - .getxattr_fn = catia_getxattr, .getxattrat_send_fn = vfs_not_implemented_getxattrat_send, .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv, .fgetxattr_fn = catia_fgetxattr,