mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
smbd: consolidate nested if expressions
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Mar 31 23:58:54 UTC 2022 on sn-devel-184
This commit is contained in:
parent
643da37fd1
commit
4b0296995c
@ -4343,12 +4343,12 @@ static NTSTATUS mkdir_internal(connection_struct *conn,
|
||||
return NT_STATUS_NOT_A_DIRECTORY;
|
||||
}
|
||||
|
||||
if (lp_store_dos_attributes(SNUM(conn))) {
|
||||
if (!posix_open) {
|
||||
file_set_dosmode(conn, smb_dname,
|
||||
file_attributes | FILE_ATTRIBUTE_DIRECTORY,
|
||||
parent_dir_fname, true);
|
||||
}
|
||||
if (lp_store_dos_attributes(SNUM(conn)) && !posix_open) {
|
||||
file_set_dosmode(conn,
|
||||
smb_dname,
|
||||
file_attributes | FILE_ATTRIBUTE_DIRECTORY,
|
||||
parent_dir_fname,
|
||||
true);
|
||||
}
|
||||
|
||||
if (lp_inherit_permissions(SNUM(conn))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user