]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/cmdline: remember config_type in samba_cmdline_init()
authorRalph Boehme <slow@samba.org>
Mon, 8 Nov 2021 11:09:16 +0000 (12:09 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 11 Nov 2021 13:49:32 +0000 (13:49 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14897

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/cmdline/cmdline_s4.c

index 61c1b96ba8d6d02853b6a9908c8cfc141043cbea..6ef6f59db4984e97d9804f45b1e0903d9c89e636 100644 (file)
@@ -25,6 +25,7 @@
 #include "cmdline_private.h"
 
 static bool _require_smbconf;
+static enum samba_cmdline_config_type _config_type;
 
 static bool _samba_cmdline_load_config_s4(void)
 {
@@ -81,6 +82,7 @@ bool samba_cmdline_init(TALLOC_CTX *mem_ctx,
                return false;
        }
        _require_smbconf = require_smbconf;
+       _config_type = config_type;
 
        creds = cli_credentials_init(mem_ctx);
        if (creds == NULL) {