1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

s3: VFS: shadow_copy2. Ensure read_dfs_pathat() returns stat info.

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>
This commit is contained in:
Jeremy Allison 2020-05-29 17:52:51 -07:00 committed by Ralph Boehme
parent 636c83741a
commit 50cb3ef0ae

View File

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