X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fconf.c;h=3c645197275c74d351945783ff3fbb9090cd95ca;hb=0c54f365534fcb345e87961e71d452e269e170fe;hp=71e45092e0fa45e209302e1e8b5ed813b6050524;hpb=5b07039b0712bee0f19749d63116a10fb08a2d8b;p=tinc diff --git a/src/conf.c b/src/conf.c index 71e45092..3c645197 100644 --- a/src/conf.c +++ b/src/conf.c @@ -373,9 +373,10 @@ bool read_server_config(void) { read_config_options(config_tree, NULL); xasprintf(&fname, "%s" SLASH "tinc.conf", confbase); + errno = 0; x = read_config_file(config_tree, fname); - if(!x) + if(!x && errno) logger(DEBUG_ALWAYS, LOG_ERR, "Failed to read `%s': %s", fname, strerror(errno)); free(fname);