From: Noel Power Date: Fri, 11 Jun 2021 15:33:02 +0000 (+0100) Subject: VFS: shadow_copy2: Remove SMB_VFS_CHFLAGS X-Git-Tag: tevent-0.11.0~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d71465b46ac3bec1db46347a5d9945df96b46a8;p=thirdparty%2Fsamba.git VFS: shadow_copy2: Remove SMB_VFS_CHFLAGS Signed-off-by: Noel Power Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index 252ea3b4697..680b8325428 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -2165,26 +2165,6 @@ static int shadow_copy2_mkdirat(vfs_handle_struct *handle, mode); } -static int shadow_copy2_chflags(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - unsigned int flags) -{ - time_t timestamp = 0; - - if (!shadow_copy2_strip_snapshot(talloc_tos(), - handle, - smb_fname, - ×tamp, - NULL)) { - return -1; - } - if (timestamp != 0) { - errno = EROFS; - return -1; - } - return SMB_VFS_NEXT_CHFLAGS(handle, smb_fname, flags); -} - static int shadow_copy2_fchflags(vfs_handle_struct *handle, struct files_struct *fsp, unsigned int flags) @@ -3224,7 +3204,6 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = { .getxattrat_send_fn = vfs_not_implemented_getxattrat_send, .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv, .fsetxattr_fn = shadow_copy2_fsetxattr, - .chflags_fn = shadow_copy2_chflags, .fchflags_fn = shadow_copy2_fchflags, .get_real_filename_fn = shadow_copy2_get_real_filename, .pwrite_fn = shadow_copy2_pwrite,