git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f560464
)
smbd: allow POSIX opens for file_set_dosmode() in mkdir_internal()
author
Ralph Boehme
<slow@samba.org>
Tue, 31 Oct 2023 11:24:12 +0000
(12:24 +0100)
committer
Jeremy Allison
<jra@samba.org>
Sun, 5 Nov 2023 18:34:38 +0000
(18:34 +0000)
As this check was previously added to file_set_dosmode() this is not yet a
change in behaviour.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 814097622118e94587e65c741ef49eb9f131fe00..4b1d5a4de65fbeb747ed7458863665e9675b81e5 100644
(file)
--- 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,