From: Jeremy Allison Date: Tue, 8 Jun 2021 23:34:40 +0000 (-0700) Subject: s3: VFS: posixacl: Remove posixacl_sys_acl_get_file(). X-Git-Tag: tevent-0.11.0~465 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfe2d8f54c23f08389261be94e9ea3fafac18842;p=thirdparty%2Fsamba.git s3: VFS: posixacl: Remove posixacl_sys_acl_get_file(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_posixacl.c b/source3/modules/vfs_posixacl.c index e72307ad374..9697b12226a 100644 --- a/source3/modules/vfs_posixacl.c +++ b/source3/modules/vfs_posixacl.c @@ -33,38 +33,6 @@ static acl_t smb_acl_to_posix(const struct smb_acl_t *acl); /* public functions - the api */ -SMB_ACL_T posixacl_sys_acl_get_file(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - SMB_ACL_TYPE_T type, - TALLOC_CTX *mem_ctx) -{ - struct smb_acl_t *result; - acl_type_t acl_type; - acl_t acl; - - switch(type) { - case SMB_ACL_TYPE_ACCESS: - acl_type = ACL_TYPE_ACCESS; - break; - case SMB_ACL_TYPE_DEFAULT: - acl_type = ACL_TYPE_DEFAULT; - break; - default: - errno = EINVAL; - return NULL; - } - - acl = acl_get_file(smb_fname->base_name, acl_type); - - if (acl == NULL) { - return NULL; - } - - result = smb_acl_to_internal(acl, mem_ctx); - acl_free(acl); - return result; -} - SMB_ACL_T posixacl_sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp, SMB_ACL_TYPE_T type, diff --git a/source3/modules/vfs_posixacl.h b/source3/modules/vfs_posixacl.h index 50e7c480e97..ab8b1da2eb3 100644 --- a/source3/modules/vfs_posixacl.h +++ b/source3/modules/vfs_posixacl.h @@ -21,11 +21,6 @@ #ifndef __VFS_POSIXACL_H__ #define __VFS_POSIXACL_H__ -SMB_ACL_T posixacl_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 posixacl_sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp, SMB_ACL_TYPE_T type,