git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daa4a72
)
r1738: honor the "unicode=yes/no" option in the SMB client library
author
Andrew Tridgell
<tridge@samba.org>
Wed, 11 Aug 2004 21:09:36 +0000
(21:09 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:57:51 +0000
(12:57 -0500)
(This used to be commit
b6664bdd0f4125a483620b76a87ea69cad866d6a
)
source4/libcli/raw/rawnegotiate.c
patch
|
blob
|
history
diff --git
a/source4/libcli/raw/rawnegotiate.c
b/source4/libcli/raw/rawnegotiate.c
index dab7b38939441e0f7640809d4d02f0b9a0df161e..5ec827eebbc92acc442a7099b5f5ca7afc407af3 100644
(file)
--- a/
source4/libcli/raw/rawnegotiate.c
+++ b/
source4/libcli/raw/rawnegotiate.c
@@
-53,7
+53,9
@@
struct smbcli_request *smb_negprot_send(struct smbcli_transport *transport, int
}
flags2 |= FLAGS2_32_BIT_ERROR_CODES;
- flags2 |= FLAGS2_UNICODE_STRINGS;
+ if (lp_unicode()) {
+ flags2 |= FLAGS2_UNICODE_STRINGS;
+ }
flags2 |= FLAGS2_EXTENDED_ATTRIBUTES;
flags2 |= FLAGS2_LONG_PATH_COMPONENTS;
flags2 |= FLAGS2_IS_LONG_NAME;
@@
-172,7
+174,7
@@
NTSTATUS smb_raw_negotiate(struct smbcli_transport *transport)
}
/* a way to force ascii SMB */
- if (getenv("SMBCLI_FORCE_ASCII")) {
+ if (
!lp_unicode() ||
getenv("SMBCLI_FORCE_ASCII")) {
transport->negotiate.capabilities &= ~CAP_UNICODE;
}