1
0
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:
Volker Lendecke 2023-08-31 11:33:02 +02:00 committed by Jeremy Allison
parent d7f5267c2b
commit e8570f73ac

View File

@ -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)