smbd: Ensure share root POSIX attrs are cleared after mode_fn
authorDavid Mulder <dmulder@samba.org>
Thu, 1 Dec 2022 17:53:44 +0000 (10:53 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 31 Mar 2023 20:22:38 +0000 (20:22 +0000)
commit3f33ea95eb654ab41636f2216002d7916fc56521
tree6e11599923b5fba1ab177219851ee5dc8d987143
parentadfa3a428bda14a19ef506203d82d055ee98f1be
smbd: Ensure share root POSIX attrs are cleared after mode_fn

The call to mode_fn (smbd_dirptr_lanman2_mode_fn)
was filling the cleared attributes back in to the
stat. Ensure the clear happens after this call.

Signed-off-by: David Mulder <dmulder@samba.org>
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c