The Samba-Bugzilla – Attachment 7116 Details for
Bug 8586
smbclient -L os2_server01 -Ugk fails with "Error returning browse list: NT_STATUS_UNSUCCESSFUL"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for master
tmp.diff (text/plain), 1.22 KB, created by
Stefan Metzmacher
on 2011-11-18 07:42:11 UTC
(
hide
)
Description:
Patch for master
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2011-11-18 07:42:11 UTC
Size:
1.22 KB
patch
obsolete
>From 787a5c2d5cf380785d036266d33e79027addd13f Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Fri, 18 Nov 2011 08:40:18 +0100 >Subject: [PATCH] s3:libsmb: only align unicode pipe_name (bug #8586) > >metze >--- > source3/libsmb/clitrans.c | 18 +++++++++++------- > 1 files changed, 11 insertions(+), 7 deletions(-) > >diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c >index 4bc9f4a..329ddca 100644 >--- a/source3/libsmb/clitrans.c >+++ b/source3/libsmb/clitrans.c >@@ -209,14 +209,18 @@ static void cli_trans_format(struct cli_trans_state *state, uint8_t *pwct, > > switch (cmd) { > case SMBtrans: >- pad[0] = 0; >- iov[0].iov_base = (void *)pad; >- iov[0].iov_len = 1; >- iov[1].iov_base = (void *)state->pipe_name_conv; >- iov[1].iov_len = state->pipe_name_conv_len; >+ if (cli_ucs2(state->cli)) { >+ pad[0] = 0; >+ iov[0].iov_base = (void *)pad; >+ iov[0].iov_len = 1; >+ param_offset += 1; >+ iov += 1; >+ } >+ iov[0].iov_base = (void *)state->pipe_name_conv; >+ iov[0].iov_len = state->pipe_name_conv_len; > wct = 14 + state->num_setup; >- param_offset += iov[0].iov_len + iov[1].iov_len; >- iov += 2; >+ param_offset += iov[0].iov_len; >+ iov += 1; > break; > case SMBtrans2: > pad[0] = 0; >-- >1.7.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8586
:
7075
|
7076
| 7116 |
7128