]> git.meshlink.io Git - meshlink/commitdiff
make_names is needed for tinc_setup
authorSaverio Proto <zioproto@gmail.com>
Fri, 4 Apr 2014 15:39:04 +0000 (17:39 +0200)
committerSaverio Proto <zioproto@gmail.com>
Fri, 4 Apr 2014 15:39:04 +0000 (17:39 +0200)
src/libmeshlink.c

index c05d17813a3fbe6e63bee1062222e712f83c5c6d..4f2364bbd3fa9aa2fb237873d7550a91a7722673 100644 (file)
@@ -194,6 +194,7 @@ int check_port(char *name) {
 }
 //tinc_setup() should basically do what cmd_init() from src/tincctl.c does, except it doesn't have to generate a tinc-up script.
 bool tinc_setup(const char* tinc_conf, const char* name) {
+       make_names();
        if(!access(tinc_conf, F_OK)) {
                fprintf(stderr, "Configuration file %s already exists!\n", tinc_conf);
                return false;