Fix check for LOCALSTATEDIR accessibility for the CLI.

The CLI does not need write access to the directory where the PID file
is stored, it just needs to be able to read the PID file.
This commit is contained in:
Guus Sliepen 2015-05-20 11:11:12 +02:00
parent 3ccdf50beb
commit 7f96ef081d
5 changed files with 25 additions and 10 deletions

View file

@ -551,7 +551,7 @@ make_names:
confbase = NULL;
}
make_names();
make_names(false);
free(tinc_conf);
free(hosts_dir);
@ -756,7 +756,7 @@ ask_netname:
}
netname = line;
make_names();
make_names(false);
}
fprintf(stderr, "Configuration stored in: %s\n", confbase);