From db79aa7260759c451e38e2df46562d01ce5514c6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 8 Sep 2011 09:18:45 +0200 Subject: s3:libsmb: add CLI_FULL_CONNECTION_FORCE_DOS_ERRORS metze --- source3/include/client.h | 1 + source3/libsmb/clientgen.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source3/include/client.h b/source3/include/client.h index 79ce709069..6566769eac 100644 --- a/source3/include/client.h +++ b/source3/include/client.h @@ -193,5 +193,6 @@ struct file_info { #define CLI_FULL_CONNECTION_OPLOCKS 0x0010 #define CLI_FULL_CONNECTION_LEVEL_II_OPLOCKS 0x0020 #define CLI_FULL_CONNECTION_USE_CCACHE 0x0040 +#define CLI_FULL_CONNECTION_FORCE_DOS_ERRORS 0x0080 #endif /* _CLIENT_H */ 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) { -- cgit