if(mkdir(mesh->confbase, 0700) && errno != EEXIST) {
logger(NULL, MESHLINK_ERROR, "Cannot create configuration directory %s: %s", mesh->confbase, strerror(errno));
meshlink_close(mesh);
if(mkdir(mesh->confbase, 0700) && errno != EEXIST) {
logger(NULL, MESHLINK_ERROR, "Cannot create configuration directory %s: %s", mesh->confbase, strerror(errno));
meshlink_close(mesh);