From: Jeremy Allison Date: Fri, 29 May 2020 23:36:55 +0000 (-0700) Subject: s3: VFS: cap. Ensure read_dfs_pathat() returns stat info. X-Git-Tag: ldb-2.2.0~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4f5dfeef6cc7819b7d4e295b589d46060b58dbf;p=thirdparty%2Fsamba.git s3: VFS: cap. 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_cap.c b/source3/modules/vfs_cap.c index cf1c1f3d22c..93f0454c608 100644 --- a/source3/modules/vfs_cap.c +++ b/source3/modules/vfs_cap.c @@ -1070,6 +1070,12 @@ static NTSTATUS cap_read_dfs_pathat(struct vfs_handle_struct *handle, cap_smb_fname, ppreflist, preferral_count); + + if (NT_STATUS_IS_OK(status)) { + /* Return any stat(2) info. */ + smb_fname->st = cap_smb_fname->st; + } + TALLOC_FREE(cappath); TALLOC_FREE(cap_smb_fname); return status;