mirror of
https://github.com/samba-team/samba.git
synced 2025-03-24 10:50:22 +03:00
s3: smbd: Inside unix_convert(), never set state->name_is_wildcard.
We error out immediately if it's set anyway. Preparing to remove 'state->name_is_wildcard' structure element. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
6493d39b67
commit
1d52a4a467
@ -1152,8 +1152,8 @@ NTSTATUS unix_convert(TALLOC_CTX *mem_ctx,
|
||||
|
||||
if (!state->posix_pathnames) {
|
||||
/* POSIX pathnames have no wildcards. */
|
||||
state->name_has_wildcard = ms_has_wild(state->smb_fname->base_name);
|
||||
if (state->name_has_wildcard) {
|
||||
bool name_has_wildcard = ms_has_wild(state->smb_fname->base_name);
|
||||
if (name_has_wildcard) {
|
||||
/* Wildcard not valid anywhere. */
|
||||
status = NT_STATUS_OBJECT_NAME_INVALID;
|
||||
goto fail;
|
||||
|
Loading…
x
Reference in New Issue
Block a user