From: Jeremy Allison Date: Fri, 4 Oct 2019 22:10:07 +0000 (-0700) Subject: s3: VFS: vfs_shadow_copy2: Remove rmdir_fn(). No longer used. X-Git-Tag: talloc-2.3.1~401 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bb2c7b8989411ac7ebd06ef6621b2a38acf7243;p=thirdparty%2Fsamba.git s3: VFS: vfs_shadow_copy2: Remove rmdir_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- 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, - ×tamp, - 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,