s3: smbd: smbd_smb2_getinfo_send(). All calls to SMB_VFS_FSTAT(fsp, &fsp->fsp_name...
commitc8b6ddb08c389567c7afa8de1aeeea314084668a
authorJeremy Allison <jra@samba.org>
Fri, 18 Mar 2022 18:45:50 +0000 (18 11:45 -0700)
committerJule Anger <janger@samba.org>
Mon, 11 Apr 2022 07:49:13 +0000 (11 07:49 +0000)
treef8031dd9edb4b756b9ceb5f5d0b87aa82453297c
parentc9763e71bc70f2d75aa45c86b8b196c4ceabee88
s3: smbd: smbd_smb2_getinfo_send(). 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 7fb2038faca256c03c2bd7d982f39f5b1a57f784)
source3/smbd/smb2_getinfo.c