From fcca720e60f7a38b3ab51be0285676462135babb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 8 Jun 2021 17:08:42 -0700 Subject: [PATCH] s3: VFS: aixacl: Remove aixacl_sys_acl_set_file(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_aixacl.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/source3/modules/vfs_aixacl.c b/source3/modules/vfs_aixacl.c index b9d08b72a72..0628fae761b 100644 --- a/source3/modules/vfs_aixacl.c +++ b/source3/modules/vfs_aixacl.c @@ -80,27 +80,6 @@ SMB_ACL_T aixacl_sys_acl_get_fd(vfs_handle_struct *handle, return NULL;*/ } -int aixacl_sys_acl_set_file(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - SMB_ACL_TYPE_T type, - SMB_ACL_T theacl) -{ - struct acl *file_acl = NULL; - unsigned int rc; - - file_acl = aixacl_smb_to_aixacl(type, theacl); - if (!file_acl) - return -1; - - rc = chacl((char *)smb_fname->base_name,file_acl,file_acl->acl_len); - DEBUG(10,("errno is %d\n",errno)); - DEBUG(10,("return code is %d\n",rc)); - SAFE_FREE(file_acl); - DEBUG(10,("Exiting the aixacl_sys_acl_set_file\n")); - - return rc; -} - int aixacl_sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, SMB_ACL_TYPE_T type, -- 2.47.3