swanctl: Use a ./configure-able swanctl base directory

This commit is contained in:
Martin Willi
2014-05-07 15:48:14 +02:00
parent 991c9b5e77
commit 7c8a907895
4 changed files with 35 additions and 6 deletions
+3 -2
View File
@@ -18,6 +18,7 @@
#include <errno.h>
#include "command.h"
#include "swanctl.h"
/**
* Check if we should handle a key as a list of comma separated values
@@ -262,10 +263,10 @@ static int load_conns(vici_conn_t *conn)
break;
}
cfg = settings_create(CONF_FILE);
cfg = settings_create(SWANCTL_CONF);
if (!cfg)
{
fprintf(stderr, "parsing '%s' failed\n", CONF_FILE);
fprintf(stderr, "parsing '%s' failed\n", SWANCTL_CONF);
return EINVAL;
}