From: Jeremy Allison Date: Tue, 8 Jun 2021 23:03:40 +0000 (-0700) Subject: s3: VFS: aixaxcl2: Remove aixjfs2_sys_acl_blob_get_file(). X-Git-Tag: tevent-0.11.0~478 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07fe1afb97e8400ea7b839637d8da120b70ade66;p=thirdparty%2Fsamba.git s3: VFS: aixaxcl2: Remove aixjfs2_sys_acl_blob_get_file(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_aixacl2.c b/source3/modules/vfs_aixacl2.c index a8e7db964e8..6c7b7503ee7 100644 --- a/source3/modules/vfs_aixacl2.c +++ b/source3/modules/vfs_aixacl2.c @@ -185,28 +185,6 @@ static NTSTATUS aixjfs2_fget_nt_acl(vfs_handle_struct *handle, return status; } -static int aixjfs2_sys_acl_blob_get_file(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - TALLOC_CTX *mem_ctx, - char **blob_description, - DATA_BLOB *blob) -{ - struct SMB4ACL_T *pacl = NULL; - const char *path_p = smb_fname->base_name; - bool result; - bool retryPosix = False; - - result = aixjfs2_get_nfs4_acl(mem_ctx, path_p, &pacl, &retryPosix); - if (retryPosix) - { - return posix_sys_acl_blob_get_file(handle, smb_fname, mem_ctx, - blob_description, blob); - } - /* Now way to linarlise NFS4 ACLs at the moment, but the NT ACL is pretty close in this case */ - errno = ENOSYS; - return -1; -} - static int aixjfs2_sys_acl_blob_get_fd(vfs_handle_struct *handle, files_struct *fsp, TALLOC_CTX *mem_ctx, char **blob_description, DATA_BLOB *blob) { struct SMB4ACL_T *pacl = NULL; @@ -485,7 +463,6 @@ static struct vfs_fn_pointers vfs_aixacl2_fns = { .fget_nt_acl_fn = aixjfs2_fget_nt_acl, .fset_nt_acl_fn = aixjfs2_fset_nt_acl, .sys_acl_get_fd_fn = aixjfs2_sys_acl_get_fd, - .sys_acl_blob_get_file_fn = aixjfs2_sys_acl_blob_get_file, .sys_acl_blob_get_fd_fn = aixjfs2_sys_acl_blob_get_fd, .sys_acl_set_fd_fn = aixjfs2_sys_acl_set_fd, .sys_acl_delete_def_fd_fn = aixjfs2_sys_acl_delete_def_fd