summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-08 09:18:45 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-08 17:51:29 +0200
commitdb79aa7260759c451e38e2df46562d01ce5514c6 (patch)
treec6fcff3d88c2674b3a387c07bcf68cddf10aa844 /source3/libsmb/clientgen.c
parent189266d8eedae1a1c78776fdbbd0883b7390107f (diff)
downloadsamba-db79aa7260759c451e38e2df46562d01ce5514c6.tar.gz
samba-db79aa7260759c451e38e2df46562d01ce5514c6.tar.bz2
samba-db79aa7260759c451e38e2df46562d01ce5514c6.zip
s3:libsmb: add CLI_FULL_CONNECTION_FORCE_DOS_ERRORS
metze
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 20b64b616c..ad4274a282 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -201,7 +201,10 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
/* Set the CLI_FORCE_DOSERR environment variable to test
client routines using DOS errors instead of STATUS32
ones. This intended only as a temporary hack. */
- if (getenv("CLI_FORCE_DOSERR"))
+ if (getenv("CLI_FORCE_DOSERR")) {
+ cli->force_dos_errors = true;
+ }
+ if (flags & CLI_FULL_CONNECTION_FORCE_DOS_ERRORS) {
cli->force_dos_errors = true;
if (flags & CLI_FULL_CONNECTION_DONT_SPNEGO) {