mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
smbd: Reduce indentation, remove a nested if-statement
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
d7f5267c2b
commit
e8570f73ac
@ -6040,11 +6040,10 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
|
||||
* delete access.
|
||||
* BUG: https://bugzilla.samba.org/show_bug.cgi?id=13358
|
||||
*/
|
||||
if (create_options & FILE_DELETE_ON_CLOSE) {
|
||||
if ((access_mask & DELETE_ACCESS) == 0) {
|
||||
status = NT_STATUS_INVALID_PARAMETER;
|
||||
goto fail;
|
||||
}
|
||||
if ((create_options & FILE_DELETE_ON_CLOSE) &&
|
||||
((access_mask & DELETE_ACCESS) == 0)) {
|
||||
status = NT_STATUS_INVALID_PARAMETER;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if ((conn->fs_capabilities & FILE_NAMED_STREAMS)
|
||||
|
Loading…
Reference in New Issue
Block a user