1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3: smbd: In smb2_query_directory.c Use ucf_flags variable instead of passing as parameter.

This will allow us to move lp_posix_pathnames() out of unix_convert()
later.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <rb@sernet.de>
This commit is contained in:
Jeremy Allison 2015-12-22 11:12:34 -08:00
parent c783db3ac9
commit acf6600132

View File

@ -335,6 +335,8 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
const char *fullpath;
char tmpbuf[PATH_MAX];
char *to_free = NULL;
uint32_t ucf_flags = UCF_SAVE_LCOMP |
UCF_ALWAYS_ALLOW_WCARD_LCOMP;
if (ISDOT(fsp->fsp_name->base_name)) {
fullpath = in_file_name;
@ -355,7 +357,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
conn,
false, /* Not a DFS path. */
fullpath,
UCF_SAVE_LCOMP | UCF_ALWAYS_ALLOW_WCARD_LCOMP,
ucf_flags,
&wcard_has_wild,
&smb_fname);