From: Jeremy Allison Date: Fri, 29 May 2020 23:38:53 +0000 (-0700) Subject: s3: VFS: catia. Ensure read_dfs_pathat() returns stat info. X-Git-Tag: ldb-2.2.0~231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9f5e36538a7a01cf3ed90e747fa63473aac9d81;p=thirdparty%2Fsamba.git s3: VFS: catia. 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_catia.c b/source3/modules/vfs_catia.c index 0ce2f7925a3..85ef5cfb0d4 100644 --- a/source3/modules/vfs_catia.c +++ b/source3/modules/vfs_catia.c @@ -2451,6 +2451,11 @@ static NTSTATUS catia_read_dfs_pathat(struct vfs_handle_struct *handle, mapped_smb_fname, ppreflist, preferral_count); + if (NT_STATUS_IS_OK(status)) { + /* Return any stat(2) info. */ + smb_fname->st = mapped_smb_fname->st; + } + TALLOC_FREE(mapped_name); TALLOC_FREE(mapped_smb_fname); return status;