From: Jeremy Allison Date: Tue, 29 Sep 2020 21:17:35 +0000 (-0700) Subject: s3: smbd: Remove unused 'bool *ppath_contains_wcard' parameter from resolve_dfspath_w... X-Git-Tag: talloc-2.3.2~384 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e59c810f2654fdd34f78376d46f559d17d86ec06;p=thirdparty%2Fsamba.git s3: smbd: Remove unused 'bool *ppath_contains_wcard' parameter from resolve_dfspath_wcard() Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 9b6f0a78790..459f78cf618 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -1828,8 +1828,7 @@ char *get_original_lcomp(TALLOC_CTX *ctx, filename_in, ucf_flags, !conn->sconn->using_smb2, - &fname, - NULL); + &fname); if (!NT_STATUS_IS_OK(status)) { DBG_DEBUG("resolve_dfspath " "failed for name %s with %s\n", @@ -1924,14 +1923,12 @@ static NTSTATUS filename_convert_internal(TALLOC_CTX *ctx, *_smb_fname = NULL; if (ucf_flags & UCF_DFS_PATHNAME) { - bool path_contains_wcard = false; char *fname = NULL; status = resolve_dfspath_wcard(ctx, conn, name_in, ucf_flags, !conn->sconn->using_smb2, - &fname, - &path_contains_wcard); + &fname); if (!NT_STATUS_IS_OK(status)) { DEBUG(10,("filename_convert_internal: resolve_dfspath " "failed for name %s with %s\n", diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 744f9973567..9c3b183ad20 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1805,9 +1805,7 @@ struct junction_map *enum_msdfs_links(TALLOC_CTX *ctx, } /****************************************************************************** - Core function to resolve a dfs pathname possibly containing a wildcard. If - ppath_contains_wcard != NULL, it will be set to true if a wildcard is - detected during dfs resolution. + Core function to resolve a dfs pathname. ******************************************************************************/ NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx, @@ -1815,10 +1813,9 @@ NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx, const char *name_in, uint32_t ucf_flags, bool allow_broken_path, - char **pp_name_out, - bool *ppath_contains_wcard) + char **pp_name_out) { - bool path_contains_wcard = false; + bool ignore = false; NTSTATUS status = NT_STATUS_OK; status = dfs_redirect(ctx, @@ -1827,12 +1824,6 @@ NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx, ucf_flags, allow_broken_path, pp_name_out, - &path_contains_wcard); - - if (NT_STATUS_IS_OK(status) && - ppath_contains_wcard != NULL && - path_contains_wcard) { - *ppath_contains_wcard = path_contains_wcard; - } + &ignore); return status; } diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index e122a92575d..c25ba5340b7 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -554,8 +554,7 @@ NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx, const char *name_in, uint32_t ucf_flags, bool allow_broken_path, - char **pp_name_out, - bool *ppath_contains_wcard); + char **pp_name_out); struct connection_struct; struct smb_filename; struct conn_struct_tos {