bool use_level_II_oplocks; /* should we use level II oplocks? */
bool force_dos_errors;
+ bool force_ascii;
bool case_sensitive; /* False by default. */
/* Where (if anywhere) this is mounted under DFS. */
#define CLI_FULL_CONNECTION_LEVEL_II_OPLOCKS 0x0020
#define CLI_FULL_CONNECTION_USE_CCACHE 0x0040
#define CLI_FULL_CONNECTION_FORCE_DOS_ERRORS 0x0080
+#define CLI_FULL_CONNECTION_FORCE_ASCII 0x0100
#endif /* _CLIENT_H */
cli->max_xmit = MIN(cli->max_xmit, CLI_BUFFER_SIZE);
/* a way to force ascii SMB */
- if (getenv("CLI_FORCE_ASCII"))
+ if (cli->force_ascii) {
cli->capabilities &= ~CAP_UNICODE;
+ }
tevent_req_done(req);
}
}
if (flags & CLI_FULL_CONNECTION_FORCE_DOS_ERRORS) {
cli->force_dos_errors = true;
+ }
+
+ if (getenv("CLI_FORCE_ASCII")) {
+ cli->force_ascii = true;
+ }
+ if (flags & CLI_FULL_CONNECTION_FORCE_ASCII) {
+ cli->force_ascii = true;
+ }
if (flags & CLI_FULL_CONNECTION_DONT_SPNEGO) {
cli->use_spnego = false;