char *fname;
bool x;
- xasprintf(&fname, "%s" SLASH "tinc.conf", confbase);
+ xasprintf(&fname, "%s" SLASH "tinc.conf", mesh->confbase);
errno = 0;
x = read_config_file(mesh->config, fname);
char *fname;
bool x;
- xasprintf(&fname, "%s" SLASH "hosts" SLASH "%s", confbase, name);
+ xasprintf(&fname, "%s" SLASH "hosts" SLASH "%s", mesh->confbase, name);
x = read_config_file(config_tree, fname);
free(fname);
bool append_config_file(const char *name, const char *key, const char *value) {
char *fname;
- xasprintf(&fname, "%s" SLASH "hosts" SLASH "%s", confbase, name);
+ xasprintf(&fname, "%s" SLASH "hosts" SLASH "%s", mesh->confbase, name);
FILE *fp = fopen(fname, "a");