s3: smbd: mdssvc: All calls to SMB_VFS_FSTAT(fsp, &fsp->fsp_name->st) clobber fsp...
commit061c2f52f3027646b36fe82b2ab91288951d536e
authorJeremy Allison <jra@samba.org>
Fri, 18 Mar 2022 18:56:53 +0000 (18 11:56 -0700)
committerJule Anger <janger@samba.org>
Mon, 11 Apr 2022 07:49:13 +0000 (11 07:49 +0000)
tree402d3979e1f9ae166c55e7a37d5daafd4ef4e9cc
parent008999b0cab8098119393486f9774406ad70214e
s3: smbd: mdssvc: All calls to SMB_VFS_FSTAT(fsp, &fsp->fsp_name->st) clobber fsp->fsp_name->st.st_ex_iflags.

If doing an SMB_VFS_FSTAT() returning onto the stat struct stored in the fsp,
we must call vfs_stat_fsp() as this preserves the iflags.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15022

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 2b246dbf687cbb6ef1e31e22fd64a95bdca8f4e9)
source3/rpc_server/mdssvc/mdssvc.c