mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
smbd: Avoid an "else" in file_set_dosmode()
Review with git show -b Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0b55d73908
commit
1850170708
@ -958,15 +958,15 @@ int file_set_dosmode(connection_struct *conn,
|
||||
}
|
||||
smb_fname->st.st_ex_mode = unixmode;
|
||||
return 0;
|
||||
} else {
|
||||
/*
|
||||
* Only fall back to using UNIX modes if
|
||||
* we get NOT_IMPLEMENTED.
|
||||
*/
|
||||
if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
|
||||
errno = map_errno_from_nt_status(status);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Only fall back to using UNIX modes if
|
||||
* we get NOT_IMPLEMENTED.
|
||||
*/
|
||||
if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
|
||||
errno = map_errno_from_nt_status(status);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Fall back to UNIX modes. */
|
||||
|
Loading…
Reference in New Issue
Block a user