1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

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>
This commit is contained in:
Jeremy Allison 2019-10-04 15:10:07 -07:00 committed by Ralph Boehme
parent 8e65a8c2e7
commit 8bb2c7b898

View File

@ -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,