summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-10-04 15:10:07 -0700
committerRalph Boehme <slow@samba.org>2019-10-10 06:09:41 +0000
commit8bb2c7b8989411ac7ebd06ef6621b2a38acf7243 (patch)
tree4c9e6d927420cb532565b3e64acd1427b97f721c /source3/modules
parent8e65a8c2e7ddbc3a53f7adf240cb2a31eb4fdc51 (diff)
downloadsamba-8bb2c7b8989411ac7ebd06ef6621b2a38acf7243.tar.gz
s3: VFS: vfs_shadow_copy2: Remove rmdir_fn(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_shadow_copy2.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index f06978a3362..099cdca0ab5 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -2302,25 +2302,6 @@ static int shadow_copy2_mkdirat(vfs_handle_struct *handle,
mode);
}
-static int shadow_copy2_rmdir(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname)
-{
- time_t timestamp = 0;
-
- if (!shadow_copy2_strip_snapshot(talloc_tos(),
- handle,
- smb_fname->base_name,
- &timestamp,
- NULL)) {
- return -1;
- }
- if (timestamp != 0) {
- errno = EROFS;
- return -1;
- }
- return SMB_VFS_NEXT_RMDIR(handle, smb_fname);
-}
-
static int shadow_copy2_chflags(vfs_handle_struct *handle,
const struct smb_filename *smb_fname,
unsigned int flags)
@@ -3182,7 +3163,6 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = {
.fget_nt_acl_fn = shadow_copy2_fget_nt_acl,
.get_shadow_copy_data_fn = shadow_copy2_get_shadow_copy_data,
.mkdirat_fn = shadow_copy2_mkdirat,
- .rmdir_fn = shadow_copy2_rmdir,
.getxattr_fn = shadow_copy2_getxattr,
.getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
.getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,