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

s3: smbd: Remove use of smb_fname->original_lcomp from smb2 query directory.

Use get_original_lcomp() call. Removes one use of smb_fname->original_lcomp.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2020-03-25 10:03:16 -07:00 committed by Ralph Boehme
parent f88c36b394
commit 9d785ae517

View File

@ -436,7 +436,20 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
return tevent_req_post(req, ev);
}
state->in_file_name = smb_fname->original_lcomp;
/*
* We still need to do the case processing
* to save off the client-supplied last component.
* At least we know there's no @GMT normalization
* or MS-DFS paths to do in a directory mask.
*/
state->in_file_name = get_original_lcomp(state,
conn,
state->in_file_name,
0);
if (state->in_file_name == NULL) {
tevent_req_oom(req);
return tevent_req_post(req, ev);
}
}
if (fsp->dptr == NULL) {