s3: smbd: mdssvc: All calls to SMB_VFS_FSTAT(fsp, &fsp->fsp_name->st) clobber fsp...
authorJeremy Allison <jra@samba.org>
Fri, 18 Mar 2022 18:56:53 +0000 (11:56 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 24 Mar 2022 16:28:37 +0000 (16:28 +0000)
commit2b246dbf687cbb6ef1e31e22fd64a95bdca8f4e9
treea2d42d43a7fcd246392b8a741aa8431f95e9947b
parentd460118be3ad2a3100bb3458f6f0223df12f7c3f
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>
source3/rpc_server/mdssvc/mdssvc.c