]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: No dfs_filename_convert() in filename_convert_smb1_search_path()
authorVolker Lendecke <vl@samba.org>
Mon, 24 Oct 2022 17:56:31 +0000 (19:56 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 5 Dec 2022 15:06:32 +0000 (15:06 +0000)
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>
source3/smbd/filename.c

index 1f8b33c7fda9318c3f501a15c8418e8443aa8c44..c66e8b4b24eed266ea85dde0d7b64bca2b4ab2e5 100644 (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,