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:
parent
0433896ee8
commit
9caa71efa9
@ -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,
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user