The API for this function specifies that *ppath_contains_wcard
must already have been initialized on entry to filename_convert()
(not a great design, but that's the way it is currently).
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
*pp_smb_fname = NULL;
if (dfs_path) {
+ bool path_contains_wcard = false;
char *fname = NULL;
status = resolve_dfspath_wcard(ctx, conn,
name_in,
ucf_flags,
!conn->sconn->using_smb2,
&fname,
- ppath_contains_wcard);
+ &path_contains_wcard);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(10,("filename_convert_internal: resolve_dfspath "
"failed for name %s with %s\n",
return status;
}
name_in = fname;
+ if (ppath_contains_wcard != NULL && path_contains_wcard) {
+ *ppath_contains_wcard = path_contains_wcard;
+ }
}
if (is_fake_file_path(name_in)) {