1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

s3: libsmb: Fix SMB1 cli_list_old_send() to cope with DFS paths.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
Jeremy Allison
2022-09-01 16:12:35 -07:00
parent 4a9458d03d
commit d9f0d92479

View 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;