From: Noel Power Date: Thu, 8 Apr 2021 12:01:06 +0000 (+0100) Subject: s3/modules: VFS: unityed_media: Remove um_chmod function X-Git-Tag: tevent-0.11.0~1196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b24b8643571ba3fb9f2d138e5f779ab514b3697;p=thirdparty%2Fsamba.git s3/modules: VFS: unityed_media: Remove um_chmod function Signed-off-by: Noel Power Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c index 332d79800d8..d9ac51cf50c 100644 --- a/source3/modules/vfs_unityed_media.c +++ b/source3/modules/vfs_unityed_media.c @@ -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,