s3: VFS: vxfs: All calls to SMB_VFS_FSTAT(fsp, &fsp->fsp_name->st) clobber fsp->fsp_n...
commit0b3fdccf2c603225ac3f272c74ee677b105d3edc
authorJeremy Allison <jra@samba.org>
Fri, 18 Mar 2022 18:51:00 +0000 (18 11:51 -0700)
committerJule Anger <janger@samba.org>
Mon, 11 Apr 2022 08:32:10 +0000 (11 08:32 +0000)
treef1b7c0eb5b3c738d799e3c3b51be9231557cec78
parentf39b359ac1e148f5689183a3a27be044d598afa6
s3: VFS: vxfs: 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 d460118be3ad2a3100bb3458f6f0223df12f7c3f)
source3/modules/vfs_vxfs.c