summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-10-10 14:26:12 -0700
committerJeremy Allison <jra@samba.org>2019-10-15 18:46:37 +0000
commit3e2c2fdf0271e48538d8004ef03aac7e9d6eec3f (patch)
treefa8186c3276472339b3379f4f6d0b171da505568 /source3/modules
parent3e8f319606b898b803c1368154c87ee41dc2c78b (diff)
downloadsamba-3e2c2fdf0271e48538d8004ef03aac7e9d6eec3f.tar.gz
s3: VFS: vfs_media_harmony: Remove chown_fn().
No longer used. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_media_harmony.c35
1 files changed, 0 insertions, 35 deletions
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
@@ -1552,40 +1552,6 @@ out:
* 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
- */
static int mh_lchown(vfs_handle_struct *handle,
const struct smb_filename *smb_fname,
uid_t uid,
@@ -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,