summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-10-10 14:27:36 -0700
committerJeremy Allison <jra@samba.org>2019-10-15 18:46:37 +0000
commit04e70da30b2166a5cfc73484cb156c66d4e1faf5 (patch)
treef4badad650007f50e469650f39e8ccb130c8dae4 /source3/modules
parent1516e9e2859bb33bec5e829c1ca9011c2563d801 (diff)
downloadsamba-04e70da30b2166a5cfc73484cb156c66d4e1faf5.tar.gz
s3: VFS: vfs_snapper: 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_snapper.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/modules/vfs_snapper.c b/source3/modules/vfs_snapper.c
index db7ab9f7de9..9ef04d91e76 100644
--- a/source3/modules/vfs_snapper.c
+++ b/source3/modules/vfs_snapper.c
@@ -2261,27 +2261,6 @@ static int snapper_gmt_chmod(vfs_handle_struct *handle,
return SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode);
}
-static int snapper_gmt_chown(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- uid_t uid,
- gid_t gid)
-{
- time_t timestamp = 0;
-
- if (!snapper_gmt_strip_snapshot(talloc_tos(),
- handle,
- smb_fname->base_name,
- &timestamp,
- NULL)) {
- return -1;
- }
- if (timestamp != 0) {
- errno = EROFS;
- return -1;
- }
- return SMB_VFS_NEXT_CHOWN(handle, smb_fname, uid, gid);
-}
-
static int snapper_gmt_chdir(vfs_handle_struct *handle,
const struct smb_filename *smb_fname)
{
@@ -2887,7 +2866,6 @@ static struct vfs_fn_pointers snapper_fns = {
.open_fn = snapper_gmt_open,
.unlinkat_fn = snapper_gmt_unlinkat,
.chmod_fn = snapper_gmt_chmod,
- .chown_fn = snapper_gmt_chown,
.chdir_fn = snapper_gmt_chdir,
.ntimes_fn = snapper_gmt_ntimes,
.readlinkat_fn = snapper_gmt_readlinkat,