From: Ralph Boehme Date: Tue, 31 Oct 2023 11:24:12 +0000 (+0100) Subject: smbd: allow POSIX opens for file_set_dosmode() in mkdir_internal() X-Git-Tag: talloc-2.4.2~848 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17bb46abfe6c996676ff8dd33711f617e18ffa35;p=thirdparty%2Fsamba.git smbd: allow POSIX opens for file_set_dosmode() in mkdir_internal() As this check was previously added to file_set_dosmode() this is not yet a change in behaviour. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 81409762211..4b1d5a4de65 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -4624,7 +4624,7 @@ static NTSTATUS mkdir_internal(connection_struct *conn, return NT_STATUS_NOT_A_DIRECTORY; } - if (lp_store_dos_attributes(SNUM(conn)) && !posix_open) { + if (lp_store_dos_attributes(SNUM(conn))) { file_set_dosmode(conn, smb_dname, file_attributes | FILE_ATTRIBUTE_DIRECTORY,