From 81c63b0eed39432878f78727f60a1e7499645199 Mon Sep 17 00:00:00 2001 From: Yves-Alexis Perez Date: Fri, 11 Jul 2014 07:23:31 +0200 Subject: Imported Upstream version 5.2.0 --- src/libtnccs/tnc/tnc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/libtnccs/tnc') diff --git a/src/libtnccs/tnc/tnc.c b/src/libtnccs/tnc/tnc.c index e002b10e0..80ba61c5a 100644 --- a/src/libtnccs/tnc/tnc.c +++ b/src/libtnccs/tnc/tnc.c @@ -26,6 +26,12 @@ #include #include +#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); } } -- cgit v1.2.3