From e24e5ec70cc36f7ea46899a1b16e28fc43857267 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 8 Jun 2021 12:50:31 -0700 Subject: [PATCH] s3: VFS: snapper: Remove snapper_gmt_get_nt_acl_at(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_snapper.c | 60 ----------------------------------- 1 file changed, 60 deletions(-) diff --git a/source3/modules/vfs_snapper.c b/source3/modules/vfs_snapper.c index 8d37b2dfe7d..d475dff7663 100644 --- a/source3/modules/vfs_snapper.c +++ b/source3/modules/vfs_snapper.c @@ -2370,65 +2370,6 @@ done: return result_fname; } -static NTSTATUS snapper_gmt_get_nt_acl_at(vfs_handle_struct *handle, - struct files_struct *dirfsp, - const struct smb_filename *fname, - uint32_t security_info, - TALLOC_CTX *mem_ctx, - struct security_descriptor **ppdesc) -{ - time_t timestamp; - char *stripped; - NTSTATUS status; - char *conv; - struct smb_filename *smb_fname = NULL; - bool ok; - - ok = snapper_gmt_strip_snapshot(talloc_tos(), - handle, - fname, - ×tamp, - &stripped); - if (!ok) { - return map_nt_error_from_unix(errno); - } - if (timestamp == 0) { - return SMB_VFS_NEXT_GET_NT_ACL_AT(handle, - dirfsp, - fname, - security_info, - mem_ctx, - ppdesc); - } - conv = snapper_gmt_convert(talloc_tos(), - handle, - stripped, - timestamp); - TALLOC_FREE(stripped); - if (conv == NULL) { - return map_nt_error_from_unix(errno); - } - smb_fname = synthetic_smb_fname(talloc_tos(), - conv, - NULL, - NULL, - 0, - fname->flags); - TALLOC_FREE(conv); - if (smb_fname == NULL) { - return NT_STATUS_NO_MEMORY; - } - - status = SMB_VFS_NEXT_GET_NT_ACL_AT(handle, - dirfsp, - smb_fname, - security_info, - mem_ctx, - ppdesc); - TALLOC_FREE(smb_fname); - return status; -} - static int snapper_gmt_mkdirat(vfs_handle_struct *handle, struct files_struct *dirfsp, const struct smb_filename *fname, @@ -2739,7 +2680,6 @@ static struct vfs_fn_pointers snapper_fns = { .readlinkat_fn = snapper_gmt_readlinkat, .mknodat_fn = snapper_gmt_mknodat, .realpath_fn = snapper_gmt_realpath, - .get_nt_acl_at_fn = snapper_gmt_get_nt_acl_at, .mkdirat_fn = snapper_gmt_mkdirat, .getxattr_fn = snapper_gmt_getxattr, .getxattrat_send_fn = vfs_not_implemented_getxattrat_send, -- 2.47.3