1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

smbd: No dfs_filename_convert() in filename_convert_smb1_search_path()

We further down call filename_convert_dirfsp(), which also has this
call. No need to copy that code here as well.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2022-10-24 19:56:31 +02:00
parent 71772c48f2
commit 453f846e18

View File

@ -509,29 +509,6 @@ NTSTATUS filename_convert_smb1_search_path(TALLOC_CTX *ctx,
ucf_flags &= ~UCF_GMT_PATHNAME;
}
if (ucf_flags & UCF_DFS_PATHNAME) {
/*
* We've been given a raw DFS pathname.
*/
char *pathname = NULL;
DBG_DEBUG("Before dfs_filename_convert name_in: %s\n", name_in);
status = dfs_filename_convert(ctx,
conn,
ucf_flags,
name_in,
&pathname);
if (!NT_STATUS_IS_OK(status)) {
DBG_DEBUG("dfs_filename_convert "
"failed for name %s with %s\n",
name_in,
nt_errstr(status));
return status;
}
ucf_flags &= ~UCF_DFS_PATHNAME;
name_in = pathname;
DBG_DEBUG("After dfs_filename_convert name_in: %s\n", name_in);
}
/* Get the original lcomp. */
mask = get_original_lcomp(ctx,
conn,