1
0
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:
Volker Lendecke 2022-01-18 20:07:30 +01:00 committed by Jeremy Allison
parent 0b55d73908
commit 1850170708

View File

@ -958,7 +958,8 @@ 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.
@ -967,7 +968,6 @@ int file_set_dosmode(connection_struct *conn,
errno = map_errno_from_nt_status(status);
return -1;
}
}
/* Fall back to UNIX modes. */
unixmode = unix_mode(conn, dosmode, smb_fname, parent_dir);