mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
s3: smbd: Replace lp_posix_pathnames() with smbreq->posix_pathnames in smb2_query_directory.c.
Currently SMB2/3 doesn't do posix pathname processing, leave this as a placeholder for when SMB2 unix extensions are added. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
This commit is contained in:
parent
944e94013c
commit
398ee270de
@ -325,7 +325,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
|
||||
dptr_CloseDir(fsp);
|
||||
}
|
||||
|
||||
if (!lp_posix_pathnames()) {
|
||||
if (!smbreq->posix_pathnames) {
|
||||
wcard_has_wild = ms_has_wild(in_file_name);
|
||||
}
|
||||
|
||||
@ -337,7 +337,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
|
||||
char *to_free = NULL;
|
||||
uint32_t ucf_flags = UCF_SAVE_LCOMP |
|
||||
UCF_ALWAYS_ALLOW_WCARD_LCOMP |
|
||||
(lp_posix_pathnames() ?
|
||||
(smbreq->posix_pathnames ?
|
||||
UCF_POSIX_PATHNAMES : 0);
|
||||
|
||||
if (ISDOT(fsp->fsp_name->base_name)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user