bool component_was_mangled;
bool name_has_wildcard;
bool posix_pathnames;
- bool allow_wcard_last_component;
bool done;
bool case_sensitive;
bool case_preserve;
return NT_STATUS_OBJECT_NAME_INVALID;
}
return determine_path_error(state->end+1,
- state->allow_wcard_last_component,
+ false,
state->posix_pathnames);
}
.orig_path = orig_path,
.ucf_flags = ucf_flags,
.posix_pathnames = (ucf_flags & UCF_POSIX_PATHNAMES),
- .allow_wcard_last_component = (ucf_flags & UCF_ALWAYS_ALLOW_WCARD_LCOMP),
.case_sensitive = conn->case_sensitive,
.case_preserve = conn->case_preserve,
.short_case_preserve = conn->short_case_preserve,
status = NT_STATUS_OBJECT_NAME_INVALID;
} else {
status =determine_path_error(&state->orig_path[2],
- state->allow_wcard_last_component,
+ false,
state->posix_pathnames);
}
goto err;
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 && !state->allow_wcard_last_component) {
+ if (state->name_has_wildcard) {
/* Wildcard not valid anywhere. */
status = NT_STATUS_OBJECT_NAME_INVALID;
goto fail;