X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fconf.c;fp=src%2Fconf.c;h=3c645197275c74d351945783ff3fbb9090cd95ca;hb=76c90e1639ee900fca4fc858260f0078ba32b9b1;hp=71e45092e0fa45e209302e1e8b5ed813b6050524;hpb=f3a2bed063d98961d0619ca318185740f8cf6f99;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);