From: Jeremy Allison Date: Thu, 10 Oct 2019 21:26:12 +0000 (-0700) Subject: s3: VFS: vfs_media_harmony: Remove chown_fn(). X-Git-Tag: talloc-2.3.1~355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e2c2fdf0271e48538d8004ef03aac7e9d6eec3f;p=thirdparty%2Fsamba.git s3: VFS: vfs_media_harmony: Remove chown_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index 4541d8157bc..291a5af763a 100644 --- a/source3/modules/vfs_media_harmony.c +++ b/source3/modules/vfs_media_harmony.c @@ -1548,40 +1548,6 @@ out: return status; } -/* - * Success: return 0 - * Failure: set errno, return -1 - */ -static int mh_chown(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - uid_t uid, - gid_t gid) -{ - int status; - struct smb_filename *clientFname = NULL; - - DEBUG(MH_INFO_DEBUG, ("Entering mh_chown\n")); - if (!is_in_media_files(smb_fname->base_name)) - { - status = SMB_VFS_NEXT_CHOWN(handle, smb_fname, uid, gid); - goto out; - } - - status = alloc_get_client_smb_fname(handle, - talloc_tos(), - smb_fname, - &clientFname); - if (status != 0) { - goto err; - } - - status = SMB_VFS_NEXT_CHOWN(handle, clientFname, uid, gid); -err: - TALLOC_FREE(clientFname); -out: - return status; -} - /* * Success: return 0 * Failure: set errno, return -1 @@ -2306,7 +2272,6 @@ static struct vfs_fn_pointers vfs_mh_fns = { .fstat_fn = mh_fstat, .unlinkat_fn = mh_unlinkat, .chmod_fn = mh_chmod, - .chown_fn = mh_chown, .lchown_fn = mh_lchown, .chdir_fn = mh_chdir, .ntimes_fn = mh_ntimes,