s3: smbd: smbd_smb2_getinfo_send(). All calls to SMB_VFS_FSTAT(fsp, &fsp->fsp_name...
authorJeremy Allison <jra@samba.org>
Fri, 18 Mar 2022 18:45:50 +0000 (11:45 -0700)
committerJule Anger <janger@samba.org>
Mon, 11 Apr 2022 08:32:10 +0000 (08:32 +0000)
commitb93079ca2a7a13345f9d9f89ba94df4dddf0aa47
tree45eac1e96bdbca6dd2f4d53af665105c3d1a2dac
parent0671b340fbbc00e07412b5f8f8d3bed4f9c53cfb
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