s3: smbd: dfs_path_lookup() no longer deals with wildcards.
authorJeremy Allison <jra@samba.org>
Fri, 3 Dec 2021 19:31:40 +0000 (11:31 -0800)
committerRalph Boehme <slow@samba.org>
Sat, 11 Dec 2021 07:17:28 +0000 (07:17 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/msdfs.c

index 0763659201647a832b35a277e86eb063e0e92ba4..6a3abd2f6eb4130f442435556df3235a8a9f3b5b 100644 (file)
@@ -680,10 +680,6 @@ bool is_msdfs_link(struct files_struct *dirfsp,
  Used by other functions to decide if a dfs path is remote,
  and to get the list of referred locations for that remote path.
 
- search_flag: For findfirsts, dfs links themselves are not
- redirected, but paths beyond the links are. For normal smb calls,
- even dfs links need to be redirected.
-
  consumedcntp: how much of the dfs path is being redirected. the client
  should try the remaining path on the redirected server.
 
@@ -755,15 +751,6 @@ static NTSTATUS dfs_path_lookup(TALLOC_CTX *ctx,
                TALLOC_FREE(parent_fname);
 
                if (NT_STATUS_IS_OK(status)) {
-                       /* XX_ALLOW_WCARD_XXX is called from search functions.*/
-                       if (ucf_flags & UCF_ALWAYS_ALLOW_WCARD_LCOMP) {
-                               DBG_INFO("(FindFirst) No redirection "
-                                        "for dfs link %s.\n",
-                                        dfspath);
-                               status = NT_STATUS_OK;
-                               goto out;
-                       }
-
                        DBG_INFO("%s resolves to a valid dfs link\n",
                                 dfspath);