From: Guus Sliepen Date: Sun, 20 Jan 2013 20:02:58 +0000 (+0100) Subject: Fix tincctl init when /etc/tinc does not yet exist. X-Git-Tag: release-1.1pre5~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=76dbcf89895e87144e1bcb3b5cb98ffce03c383b;p=oweals%2Ftinc.git Fix tincctl init when /etc/tinc does not yet exist. --- diff --git a/src/Makefile.am b/src/Makefile.am index ea4da6d..eeee152 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -46,7 +46,7 @@ INCLUDES = @INCLUDES@ -I$(top_builddir) noinst_HEADERS = \ xalloc.h utils.h getopt.h list.h splay_tree.h dropin.h fake-getaddrinfo.h fake-getnameinfo.h fake-gai-errnos.h ipv6.h ipv4.h ethernet.h \ buffer.h conf.h connection.h control.h control_common.h device.h edge.h graph.h info.h logger.h meta.h net.h netutl.h node.h process.h \ - protocol.h route.h subnet.h sptps.h tincctl.h top.h bsd/tunemu.h hash.h event.h + protocol.h route.h subnet.h sptps.h tincctl.h top.h bsd/tunemu.h hash.h event.h names.h nodist_noinst_HEADERS = \ cipher.h crypto.h ecdh.h ecdsa.h digest.h prf.h rsa.h ecdsagen.h rsagen.h diff --git a/src/names.c b/src/names.c index 1fb0a8f..c42b953 100644 --- a/src/names.c +++ b/src/names.c @@ -66,7 +66,7 @@ void make_names(void) { } #endif if(!confdir) - confdir = xstrdup(CONFDIR); + confdir = xstrdup(CONFDIR SLASH "tinc"); if(!logfilename) xasprintf(&logfilename, LOCALSTATEDIR SLASH "log" SLASH "%s.log", identname);