Skip to content

Commit

Permalink
smbd: realign stat_cache_add() args in unix_convert()
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Boehme <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
slowfranklin authored and jrasamba committed May 5, 2020
1 parent 6e8ffcf commit 1130c64
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source3/smbd/filename.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 1130c64

Please sign in to comment.