From 4fdad1960cf45973eec97f09721eeb4dfdc8088c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 26 Jul 2011 15:15:26 -0700 Subject: Fix bug #8324 - smbclient cannot list directories from a big-endian machine. Two uses of the setup array are not being correctly byte-swapped to little endian. Autobuild-User: Jeremy Allison Autobuild-Date: Wed Jul 27 03:14:48 CEST 2011 on sn-devel-104 --- source3/libsmb/clilist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 1aa5699be5..55a6636a73 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -572,7 +572,7 @@ static struct tevent_req *cli_list_trans_send(TALLOC_CTX *mem_ctx, state->max_matches = 1366; /* Match W2k */ - state->setup[0] = TRANSACT2_FINDFIRST; + SSVAL(&state->setup[0], 0, TRANSACT2_FINDFIRST); state->param = talloc_array(state, uint8_t, 12); if (tevent_req_nomem(state->param, req)) { @@ -736,7 +736,7 @@ static void cli_list_trans_done(struct tevent_req *subreq) return; } - state->setup[0] = TRANSACT2_FINDNEXT; + SSVAL(&state->setup[0], 0, TRANSACT2_FINDNEXT); param = talloc_realloc(state, state->param, uint8_t, 12); if (tevent_req_nomem(param, req)) { -- cgit