From: Ralph Boehme Date: Tue, 5 May 2020 11:00:00 +0000 (+0200) Subject: smbd: realign stat_cache_add() args in unix_convert() X-Git-Tag: ldb-2.2.0~661 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1130c64f494268df8577598aa99fc95382133dee;p=thirdparty%2Fsamba.git smbd: realign stat_cache_add() args in unix_convert() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 7f11239c77d..b93c0ee6f45 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -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); }