smbd: Fix smb1 findfirst with DFS
authorVolker Lendecke <vl@samba.org>
Thu, 6 Apr 2017 20:12:36 +0000 (22:12 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 7 Apr 2017 20:52:24 +0000 (22:52 +0200)
9377f3bce should have changed the callers of dfs_path_lookup. It now
takes a uint32_t ucf_flags, not a boolean anymore.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12558

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/msdfs.c

index 51e3dff26787d57ff38ece466975d9bb20d53c47..61538cec8329447d02e891d9db091de3d0e1c19e 100644 (file)
@@ -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));
@@ -1073,7 +1073,7 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
         * NT_STATUS_PATH_NOT_COVERED. */
 
        status = dfs_path_lookup(ctx, conn, dfs_path, pdp,
-                       False, consumedcntp, &targetpath);
+                                0, consumedcntp, &targetpath);
 
        if (!NT_STATUS_EQUAL(status, NT_STATUS_PATH_NOT_COVERED)) {
                DEBUG(3,("get_referred_path: No valid referrals for path %s\n",