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:
parent
68f3e53826
commit
b6664bdd0f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user