mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
smbd: realigning a complex if expression in unix_convert()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
8632f7eaba
commit
6e8ffcff46
@ -1121,11 +1121,20 @@ NTSTATUS unix_convert(TALLOC_CTX *mem_ctx,
|
||||
* added and verified in build_stream_path().
|
||||
*/
|
||||
|
||||
if((!state->conn->case_sensitive || !(state->conn->fs_capabilities &
|
||||
FILE_CASE_SENSITIVE_SEARCH)) &&
|
||||
stat_cache_lookup(state->conn, state->posix_pathnames, &state->smb_fname->base_name, &state->dirpath, &state->name,
|
||||
&state->smb_fname->st)) {
|
||||
goto done;
|
||||
if (!state->conn->case_sensitive ||
|
||||
!(state->conn->fs_capabilities & FILE_CASE_SENSITIVE_SEARCH))
|
||||
{
|
||||
bool found;
|
||||
|
||||
found = stat_cache_lookup(state->conn,
|
||||
state->posix_pathnames,
|
||||
&state->smb_fname->base_name,
|
||||
&state->dirpath,
|
||||
&state->name,
|
||||
&state->smb_fname->st);
|
||||
if (found) {
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user