1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-19 21:57:57 +03:00

r1738: honor the "unicode=yes/no" option in the SMB client library

This commit is contained in:
Andrew Tridgell 2004-08-11 21:09:36 +00:00 committed by Gerald (Jerry) Carter
parent 68f3e53826
commit b6664bdd0f

View File

@ -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;
}