smbd: move POSIX check from possibly_set_archive() to file_set_dosmode()
commit4d1b4d893d2fe297218309736ae63bac63404b5b
authorRalph Boehme <slow@samba.org>
Tue, 31 Oct 2023 11:16:59 +0000 (31 12:16 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 5 Nov 2023 18:34:38 +0000 (5 18:34 +0000)
treedf9a82570196398968104e58addfab0ddf345224
parentb3c6c677a7031ad3a182a90c621a3f1ffb37e9fb
smbd: move POSIX check from possibly_set_archive() to file_set_dosmode()

No change in behaviour. Move the check to the more low-level function
file_set_dosmode() to ensure all callers use this consistently.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dosmode.c
source3/smbd/open.c