summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-07-26 15:15:26 -0700
committerJeremy Allison <jra@samba.org>2011-07-27 03:14:48 +0200
commit4fdad1960cf45973eec97f09721eeb4dfdc8088c (patch)
tree617f0d5ea92ea728bfb26143104eb7c1887208fd
parent61d420e0d84483a4182108b00eec7484ab89b478 (diff)
downloadsamba-4fdad1960cf45973eec97f09721eeb4dfdc8088c.tar.gz
samba-4fdad1960cf45973eec97f09721eeb4dfdc8088c.tar.bz2
samba-4fdad1960cf45973eec97f09721eeb4dfdc8088c.zip
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 <jra@samba.org> Autobuild-Date: Wed Jul 27 03:14:48 CEST 2011 on sn-devel-104
-rw-r--r--source3/libsmb/clilist.c4
1 files 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)) {