]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: shadow_copy2. Ensure read_dfs_pathat() returns stat info.
authorJeremy Allison <jra@samba.org>
Sat, 30 May 2020 00:52:51 +0000 (17:52 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 3 Jun 2020 04:54:39 +0000 (04:54 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14391

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_shadow_copy2.c

index 45fb5b97ce37994bf426220dda08ff86f2079189..6a1e560988ebbb085b383f815fbd59086189dbc9 100644 (file)
@@ -2441,6 +2441,11 @@ static NTSTATUS shadow_copy2_read_dfs_pathat(struct vfs_handle_struct *handle,
                                ppreflist,
                                preferral_count);
 
+       if (NT_STATUS_IS_OK(status)) {
+               /* Return any stat(2) info. */
+               smb_fname->st = conv->st;
+       }
+
        TALLOC_FREE(conv);
        return status;
 }