]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/modules: VFS: unityed_media: Remove um_chmod function
authorNoel Power <noel.power@suse.com>
Thu, 8 Apr 2021 12:01:06 +0000 (13:01 +0100)
committerNoel Power <npower@samba.org>
Sun, 11 Apr 2021 22:27:34 +0000 (22:27 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_unityed_media.c

index 332d79800d82260f36dd7c840c798ac67c648b19..d9ac51cf50c9ffc4017fec258ee383a5f5d3f0d8 100644 (file)
@@ -1154,34 +1154,6 @@ err:
        return ret;
 }
 
-static int um_chmod(vfs_handle_struct *handle,
-                       const struct smb_filename *smb_fname,
-                       mode_t mode)
-{
-       int status;
-       struct smb_filename *client_fname = NULL;
-
-       DEBUG(10, ("Entering um_chmod\n"));
-
-       if (!is_in_media_files(smb_fname->base_name)) {
-               return SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode);
-       }
-
-       status = alloc_get_client_smb_fname(handle,
-                               talloc_tos(),
-                               smb_fname,
-                               &client_fname);
-       if (status != 0) {
-               goto err;
-       }
-
-       status = SMB_VFS_NEXT_CHMOD(handle, client_fname, mode);
-
-err:
-       TALLOC_FREE(client_fname);
-       return status;
-}
-
 static int um_lchown(vfs_handle_struct *handle,
                        const struct smb_filename *smb_fname,
                        uid_t uid,
@@ -1795,7 +1767,6 @@ static struct vfs_fn_pointers vfs_um_fns = {
        .lstat_fn = um_lstat,
        .fstat_fn = um_fstat,
        .unlinkat_fn = um_unlinkat,
-       .chmod_fn = um_chmod,
        .lchown_fn = um_lchown,
        .chdir_fn = um_chdir,
        .ntimes_fn = um_ntimes,