mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
smbd: Simplify fdos_mode
We don't need the outer !NT_STATUS_IS_OK and the comment Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
6a077e2fcd
commit
e2ba614465
@ -719,15 +719,11 @@ uint32_t fdos_mode(struct files_struct *fsp)
|
||||
status = SMB_VFS_FGET_DOS_ATTRIBUTES(fsp->conn,
|
||||
metadata_fsp(fsp),
|
||||
&result);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
/*
|
||||
* Only fall back to using UNIX modes if we get NOT_IMPLEMENTED.
|
||||
*/
|
||||
if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
|
||||
result |= dos_mode_from_sbuf(fsp->conn,
|
||||
&fsp->fsp_name->st,
|
||||
fsp);
|
||||
}
|
||||
|
||||
if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
|
||||
result |= dos_mode_from_sbuf(fsp->conn,
|
||||
&fsp->fsp_name->st,
|
||||
fsp);
|
||||
}
|
||||
|
||||
fsp->fsp_name->st.cached_dos_attributes = dos_mode_post(result, fsp, __func__);
|
||||
|
Loading…
x
Reference in New Issue
Block a user