From: Jeremy Allison Date: Sat, 30 May 2020 00:52:51 +0000 (-0700) Subject: s3: VFS: shadow_copy2. Ensure read_dfs_pathat() returns stat info. X-Git-Tag: ldb-2.2.0~228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50cb3ef0aeb1b422f519fc5649ad55fffc2c7df2;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index 45fb5b97ce3..6a1e560988e 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -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; }