1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

smbd: realign stat_cache_add() args in unix_convert()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2020-05-05 13:00:00 +02:00 committed by Jeremy Allison
parent 6e8ffcff46
commit 1130c64f49

View File

@ -929,7 +929,8 @@ static NTSTATUS unix_convert_step(struct uc_state *state)
* or wildcard components as this can change the size.
*/
if(!state->component_was_mangled && !state->name_has_wildcard) {
stat_cache_add(state->orig_path, state->dirpath,
stat_cache_add(state->orig_path,
state->dirpath,
state->conn->case_sensitive);
}
@ -1185,7 +1186,8 @@ NTSTATUS unix_convert(TALLOC_CTX *mem_ctx,
goto fail;
}
/* Add the path (not including the stream) to the cache. */
stat_cache_add(state->orig_path, state->smb_fname->base_name,
stat_cache_add(state->orig_path,
state->smb_fname->base_name,
state->conn->case_sensitive);
DBG_DEBUG("Conversion of base_name finished "
"[%s] -> [%s]\n",
@ -1346,7 +1348,8 @@ NTSTATUS unix_convert(TALLOC_CTX *mem_ctx,
*/
if(!state->component_was_mangled && !state->name_has_wildcard) {
stat_cache_add(state->orig_path, state->smb_fname->base_name,
stat_cache_add(state->orig_path,
state->smb_fname->base_name,
state->conn->case_sensitive);
}