s3: smbd: non_widelink_open(). All calls to SMB_VFS_FSTAT(fsp, &fsp->fsp_name->st...
commit09bc8b2bb8209c63550aa04ee8cf49b46631b68e
authorJeremy Allison <jra@samba.org>
Fri, 18 Mar 2022 19:09:43 +0000 (18 12:09 -0700)
committerJule Anger <janger@samba.org>
Mon, 11 Apr 2022 07:49:13 +0000 (11 07:49 +0000)
tree0c11b5fb3dfde3294c376e0e534f8d845bdc8121
parentf46dad0a2b9c11315c587bbf07b749f41631603e
s3: smbd: non_widelink_open(). 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 18694c81cc3c3d94dc99e3b11878021052279eb6)
source3/smbd/open.c