libtnccs: Use a default tnc_config in the current working dir on Windows
This commit is contained in:
parent
d6935ddaf6
commit
6d8094ee1f
|
@ -26,6 +26,12 @@
|
|||
#include <utils/lexparser.h>
|
||||
#include <utils/debug.h>
|
||||
|
||||
#ifdef WIN32
|
||||
# define DEFAULT_TNC_CONFIG "tnc_config"
|
||||
#else
|
||||
# define DEFAULT_TNC_CONFIG "/etc/tnc_config"
|
||||
#endif
|
||||
|
||||
typedef struct private_tnc_t private_tnc_t;
|
||||
|
||||
typedef tnccs_manager_t *(*tnc_create_tnccs_manager_t)(void);
|
||||
|
@ -251,7 +257,7 @@ bool tnc_manager_register(plugin_t *plugin, plugin_feature_t *feature,
|
|||
{
|
||||
load_imcvs_from_config(
|
||||
lib->settings->get_str(lib->settings,
|
||||
"%s.tnc.tnc_config", "/etc/tnc_config", lib->ns),
|
||||
"%s.tnc.tnc_config", DEFAULT_TNC_CONFIG, lib->ns),
|
||||
is_imc);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue