]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: unityed_media: Remove um_sys_acl_get_file().
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 22:26:04 +0000 (15:26 -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_unityed_media.c

index aa264e042405fa690c7d8a36c48dd9bb846d8345..e99d56a4f8401fe2eed5eef7c4292d8e18660e37 100644 (file)
@@ -1469,46 +1469,6 @@ err:
        return status;
 }
 
-static SMB_ACL_T um_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 saved_errno = 0;
-       struct smb_filename *client_fname = NULL;
-       int status;
-
-       DEBUG(10, ("Entering um_sys_acl_get_file\n"));
-
-       if (!is_in_media_files(smb_fname->base_name)) {
-               return SMB_VFS_NEXT_SYS_ACL_GET_FILE(handle, smb_fname,
-                                                    type, mem_ctx);
-       }
-
-       status = alloc_get_client_smb_fname(handle,
-                               talloc_tos(),
-                               smb_fname,
-                               &client_fname);
-       if (status != 0) {
-               ret = (SMB_ACL_T)NULL;
-               goto err;
-       }
-
-       ret = SMB_VFS_NEXT_SYS_ACL_GET_FILE(handle, client_fname,
-                               type, mem_ctx);
-
-err:
-       if (ret == (SMB_ACL_T)NULL) {
-               saved_errno = errno;
-       }
-       TALLOC_FREE(client_fname);
-       if (saved_errno != 0) {
-               errno = saved_errno;
-       }
-       return ret;
-}
-
 static ssize_t um_getxattr(struct vfs_handle_struct *handle,
                           const struct smb_filename *smb_fname,
                           const char *name,
@@ -1613,10 +1573,6 @@ static struct vfs_fn_pointers vfs_um_fns = {
        .realpath_fn = um_realpath,
        .chflags_fn = um_chflags,
 
-       /* POSIX ACL operations. */
-
-       .sys_acl_get_file_fn = um_sys_acl_get_file,
-
        /* EA operations. */
        .getxattr_fn = um_getxattr,
        .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,