]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Fix SMB1 cli_list_old_send() to cope with DFS paths.
authorJeremy Allison <jra@samba.org>
Thu, 1 Sep 2022 23:12:35 +0000 (16:12 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 15 Sep 2022 18:43:32 +0000 (18:43 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/libsmb/clilist.c

index d71172d6737057da4d2f0316b7e7b2632d4e6ae3..da31ed2f17fc2daddba4edf680a7dbeb68c35b42 100644 (file)
@@ -394,6 +394,10 @@ static struct tevent_req *cli_list_old_send(TALLOC_CTX *mem_ctx,
        if (tevent_req_nomem(state->mask, req)) {
                return tevent_req_post(req, ev);
        }
+       state->mask = smb1_dfs_share_path(state, cli, state->mask);
+       if (tevent_req_nomem(state->mask, req)) {
+               return tevent_req_post(req, ev);
+       }
        usable_space = cli_state_available_size(cli, 100);
        state->num_asked = usable_space / DIR_STRUCT_SIZE;