diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-10 14:20:02 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-10-15 18:46:37 +0000 |
commit | 2eca6d5b9551bd387e809fc77e496a2dc2c1595a (patch) | |
tree | 3df3e7001d36159ed4c82ab1b5cca2704569bc4f /source3/modules | |
parent | 177f15ebb9e29a4cc6843a300f3da0ba7530332d (diff) | |
download | samba-2eca6d5b9551bd387e809fc77e496a2dc2c1595a.tar.gz |
s3: VFS: vfs_cap: 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_cap.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c index 21465c4f91d..f1ec5807b49 100644 --- a/source3/modules/vfs_cap.c +++ b/source3/modules/vfs_cap.c @@ -358,40 +358,6 @@ static int cap_chmod(vfs_handle_struct *handle, return ret; } -static int cap_chown(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - uid_t uid, - gid_t gid) -{ - struct smb_filename *cap_smb_fname = NULL; - char *cappath = capencode(talloc_tos(), smb_fname->base_name); - int ret; - int saved_errno; - - if (!cappath) { - errno = ENOMEM; - return -1; - } - - cap_smb_fname = synthetic_smb_fname(talloc_tos(), - cappath, - NULL, - NULL, - smb_fname->flags); - if (cap_smb_fname == NULL) { - TALLOC_FREE(cappath); - errno = ENOMEM; - return -1; - } - - ret = SMB_VFS_NEXT_CHOWN(handle, cap_smb_fname, uid, gid); - saved_errno = errno; - TALLOC_FREE(cappath); - TALLOC_FREE(cap_smb_fname); - errno = saved_errno; - return ret; -} - static int cap_lchown(vfs_handle_struct *handle, const struct smb_filename *smb_fname, uid_t uid, @@ -1022,7 +988,6 @@ static struct vfs_fn_pointers vfs_cap_fns = { .lstat_fn = cap_lstat, .unlinkat_fn = cap_unlinkat, .chmod_fn = cap_chmod, - .chown_fn = cap_chown, .lchown_fn = cap_lchown, .chdir_fn = cap_chdir, .ntimes_fn = cap_ntimes, |