]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_media_harmony: Remove chown_fn().
authorJeremy Allison <jra@samba.org>
Thu, 10 Oct 2019 21:26:12 +0000 (14:26 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 15 Oct 2019 18:46:37 +0000 (18:46 +0000)
No longer used.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/modules/vfs_media_harmony.c

index 4541d8157bcb145a94450702e3794a9df100c76c..291a5af763aecbba0a3b8717de0f4ae5824151f2 100644 (file)
@@ -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,