]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: shadow_copy2: Remove SMB_VFS_NTIMES()
authorSamuel Cabrero <scabrero@samba.org>
Tue, 13 Apr 2021 15:27:41 +0000 (17:27 +0200)
committerSamuel Cabrero <scabrero@sn-devel-184>
Mon, 19 Apr 2021 12:28:30 +0000 (12:28 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_shadow_copy2.c

index 3042727e512aa43c9e97f5b77c67840bbc20fc85..e66a9784107bd45c8006074889bafb415bd95087 100644 (file)
@@ -1552,24 +1552,6 @@ static int shadow_copy2_chdir(vfs_handle_struct *handle,
        return ret;
 }
 
-static int shadow_copy2_ntimes(vfs_handle_struct *handle,
-                              const struct smb_filename *smb_fname,
-                              struct smb_file_time *ft)
-{
-       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_NTIMES(handle, smb_fname, ft);
-}
-
 static int shadow_copy2_fntimes(vfs_handle_struct *handle,
                                files_struct *fsp,
                                struct smb_file_time *ft)
@@ -3194,7 +3176,6 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = {
        .unlinkat_fn = shadow_copy2_unlinkat,
        .fchmod_fn = shadow_copy2_fchmod,
        .chdir_fn = shadow_copy2_chdir,
-       .ntimes_fn = shadow_copy2_ntimes,
        .fntimes_fn = shadow_copy2_fntimes,
        .readlinkat_fn = shadow_copy2_readlinkat,
        .mknodat_fn = shadow_copy2_mknodat,