s3: smbd: open_internal_dirfsp(). All calls to SMB_VFS_FSTAT(fsp, &fsp->fsp_name...
commitf46dad0a2b9c11315c587bbf07b749f41631603e
authorJeremy Allison <jra@samba.org>
Fri, 18 Mar 2022 19:02:35 +0000 (18 12:02 -0700)
committerJule Anger <janger@samba.org>
Mon, 11 Apr 2022 07:49:13 +0000 (11 07:49 +0000)
tree3faf57bc3cc7625c87b92983be33513e689f3c32
parentf1030ba8db34b6e5026d5e78bb99a5cddf26220b
s3: smbd: open_internal_dirfsp(). 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 a604dd02ffb468ba472ac4dd64f06d30ecdcc810)
source3/smbd/files.c