s3: VFS: posixacl: Remove posixacl_sys_acl_get_file().
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 23:34:40 +0000 (16:34 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:31 +0000 (13:14 +0000)
No longer used.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_posixacl.c
source3/modules/vfs_posixacl.h

index e72307ad37463574f3b21898c293f88a99addd57..9697b12226a1b7065709e00c19df9a7909a209ab 100644 (file)
@@ -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,
index 50e7c480e974acada2d1f33e010cef54db272b44..ab8b1da2eb365fc0ab08f53d3a8a17abe3edcd2e 100644 (file)
 #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,