s3: VFS: media_harmony: Remove mh_sys_acl_get_file().
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 22:22:59 +0000 (15:22 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:31 +0000 (13:14 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_media_harmony.c

index efdfb05b87bcf20392a97b7611e83f31e18b9960..3df8e4bfe908cc688cf675990f7909d08908dd0a 100644 (file)
@@ -1845,42 +1845,6 @@ out:
  * doesn't do anything.
  */
 
-/*
- * Success: return acl pointer
- * Failure: set errno, return NULL
- */
-static SMB_ACL_T mh_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 ret;
-       int status;
-       struct smb_filename *clientFname = NULL;
-
-       DEBUG(MH_INFO_DEBUG, ("Entering mh_sys_acl_get_file\n"));
-       if (!is_in_media_files(smb_fname->base_name)) {
-               ret = SMB_VFS_NEXT_SYS_ACL_GET_FILE(handle, smb_fname,
-                               type, mem_ctx);
-               goto out;
-       }
-
-       status = alloc_get_client_smb_fname(handle,
-                               talloc_tos(),
-                               smb_fname,
-                               &clientFname);
-       if (status != 0) {
-               ret = (SMB_ACL_T)NULL;
-               goto err;
-       }
-
-       ret = SMB_VFS_NEXT_SYS_ACL_GET_FILE(handle, clientFname, type, mem_ctx);
-err:
-       TALLOC_FREE(clientFname);
-out:
-       return ret;
-}
-
 /*
  * Success: return positive number
  * Failure: set errno, return -1
@@ -1959,10 +1923,6 @@ static struct vfs_fn_pointers vfs_mh_fns = {
        .realpath_fn = mh_realpath,
        .chflags_fn = mh_chflags,
 
-       /* POSIX ACL operations. */
-
-       .sys_acl_get_file_fn = mh_sys_acl_get_file,
-
        /* EA operations. */
        .getxattr_fn = mh_getxattr,
        .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,