1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

lib:cmdline: Add SAMBA_CMDLINE_CONFIG_NONE

This will prevent loading a config file. This will be needed for
testparm.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2021-01-13 09:56:41 +01:00 committed by Andrew Bartlett
parent 0433896ee8
commit 9caa71efa9
2 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,8 @@
#endif
enum samba_cmdline_config_type {
SAMBA_CMDLINE_CONFIG_CLIENT = 0,
SAMBA_CMDLINE_CONFIG_NONE = 0,
SAMBA_CMDLINE_CONFIG_CLIENT,
SAMBA_CMDLINE_CONFIG_SERVER,
};

View File

@ -50,6 +50,8 @@ static bool _samba_cmdline_load_config_s3(void)
config_file = get_dyn_CONFIGFILE();
switch (_config_type) {
case SAMBA_CMDLINE_CONFIG_NONE:
return true;
case SAMBA_CMDLINE_CONFIG_CLIENT:
ok = lp_load_client(config_file);
break;