s3: VFS: media_harmony. Remove mh_get_nt_acl_at().
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 19:48:12 +0000 (12:48 -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 38b463cf0d4bf6aa588f4d3989bf769e0a8c1a58..efdfb05b87bcf20392a97b7611e83f31e18b9960 100644 (file)
@@ -1845,70 +1845,6 @@ out:
  * doesn't do anything.
  */
 
-/*
- * Success: return NT_STATUS_OK
- * Failure: return NT status error
- * In this case, "name" is a path.
- */
-static NTSTATUS mh_get_nt_acl_at(vfs_handle_struct *handle,
-                       struct files_struct *dirfsp,
-                       const struct smb_filename *smb_fname,
-                       uint32_t security_info,
-                       TALLOC_CTX *mem_ctx,
-                       struct security_descriptor **ppdesc)
-{
-       NTSTATUS status;
-       char *clientPath;
-       struct smb_filename *client_smb_fname = NULL;
-       TALLOC_CTX *ctx;
-
-       SMB_ASSERT(dirfsp == handle->conn->cwd_fsp);
-
-       DEBUG(MH_INFO_DEBUG, ("Entering mh_get_nt_acl_at\n"));
-       if (!is_in_media_files(smb_fname->base_name)) {
-               status = SMB_VFS_NEXT_GET_NT_ACL_AT(handle,
-                                       dirfsp,
-                                       smb_fname,
-                                       security_info,
-                                       mem_ctx,
-                                       ppdesc);
-               goto out;
-       }
-
-       clientPath = NULL;
-       ctx = talloc_tos();
-
-       if (alloc_get_client_path(handle, ctx,
-                               smb_fname->base_name,
-                               &clientPath)) {
-               status = map_nt_error_from_unix(errno);
-               goto err;
-       }
-
-       client_smb_fname = synthetic_smb_fname(talloc_tos(),
-                                       clientPath,
-                                       NULL,
-                                       NULL,
-                                       smb_fname->twrp,
-                                       smb_fname->flags);
-       if (client_smb_fname == NULL) {
-               TALLOC_FREE(clientPath);
-               return NT_STATUS_NO_MEMORY;
-       }
-
-       status = SMB_VFS_NEXT_GET_NT_ACL_AT(handle,
-                                       dirfsp,
-                                       client_smb_fname,
-                                       security_info,
-                                       mem_ctx,
-                                       ppdesc);
-err:
-       TALLOC_FREE(clientPath);
-       TALLOC_FREE(client_smb_fname);
-out:
-       return status;
-}
-
 /*
  * Success: return acl pointer
  * Failure: set errno, return NULL
@@ -2023,10 +1959,6 @@ static struct vfs_fn_pointers vfs_mh_fns = {
        .realpath_fn = mh_realpath,
        .chflags_fn = mh_chflags,
 
-       /* NT ACL operations. */
-
-       .get_nt_acl_at_fn = mh_get_nt_acl_at,
-
        /* POSIX ACL operations. */
 
        .sys_acl_get_file_fn = mh_sys_acl_get_file,