The branch, v3-6-test has been updated via 146549d Fix bug #8324 - smbclient cannot list directories from a big-endian machine. from 0f9a24b s3:torture: remove a file accidentially committed with 3b2fe4728d6d916508b677e696ecad88f8b7b9fd
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test - Log ----------------------------------------------------------------- commit 146549d7250fefb365675154f0916c37e56faa5d Author: Jeremy Allison <j...@samba.org> Date: Tue Jul 26 15:16:29 2011 -0700 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. ----------------------------------------------------------------------- Summary of changes: source3/libsmb/clilist.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index d74d3d8..59d01b7 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -573,7 +573,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); nlen = 2*(strlen(mask)+1); state->param = TALLOC_ARRAY(state, uint8_t, 12+nlen+2); @@ -735,7 +735,7 @@ static void cli_list_trans_done(struct tevent_req *subreq) return; } - state->setup[0] = TRANSACT2_FINDNEXT; + SSVAL(&state->setup[0], 0, TRANSACT2_FINDNEXT); nlen = 2*(strlen(state->mask) + 1); -- Samba Shared Repository