From 5253380bc07173c12f5d97229a525ab5d370ff7e Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 26 Sep 2017 17:04:55 +0100 Subject: [PATCH] s3/smbd: Browsing DFS share gets NT_STATUS_OBJECT_NAME_INVALID dfs_path_lookup is incorrectly passed a bool instead of ucf_flags, this results NT_STATUS_OBJECT_NAME_INVALID for '*' wildcard search. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12539 Signed-off-by: Noel Power --- source3/smbd/msdfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 51e3dff..231531e 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -888,7 +888,7 @@ static NTSTATUS dfs_redirect(TALLOC_CTX *ctx, } status = dfs_path_lookup(ctx, conn, path_in, pdp, - search_wcard_flag, NULL, NULL); + ucf_flags, NULL, NULL); if (!NT_STATUS_IS_OK(status)) { if (NT_STATUS_EQUAL(status, NT_STATUS_PATH_NOT_COVERED)) { DEBUG(3,("dfs_redirect: Redirecting %s\n", path_in)); -- 1.8.5.6