]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
VFS: shadow_copy2: Remove SMB_VFS_CHFLAGS
authorNoel Power <noel.power@suse.com>
Fri, 11 Jun 2021 15:33:02 +0000 (16:33 +0100)
committerNoel Power <npower@samba.org>
Tue, 29 Jun 2021 08:21:38 +0000 (08:21 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_shadow_copy2.c

index 252ea3b46972b4a294cd59a15f81d92de1469092..680b8325428cd54f072bff088bf1c4a33e84e96a 100644 (file)
@@ -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,
-                                       &timestamp,
-                                       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,