s3: smbd: smbd_smb2_setinfo_send(). All calls to SMB_VFS_FSTAT(fsp, &fsp->fsp_name...
authorJeremy Allison <jra@samba.org>
Fri, 18 Mar 2022 19:30:27 +0000 (12:30 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 24 Mar 2022 17:21:29 +0000 (17:21 +0000)
commitc4f9c372405bea8a7d9c6b39e04cebefa3322a19
tree293e2f6f97f22201f3ebe24a480d60b04a20d0ad
parent7fb2038faca256c03c2bd7d982f39f5b1a57f784
s3: smbd: smbd_smb2_setinfo_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.

This is the last SMB_VFS_FSTAT that uses fsp->fsp_name->st, so
remove knownfail.d/durable-v2-setinfo

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>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Mar 24 17:21:29 UTC 2022 on sn-devel-184
selftest/knownfail.d/durable-v2-setinfo [deleted file]
source3/smbd/smb2_setinfo.c