]> git.ipfire.org Git - zone-sync.git/commitdiff
main: Use a more sensible default path
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 May 2026 15:28:55 +0000 (15:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 May 2026 15:28:55 +0000 (15:28 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
main.c

index 355d9fdc6bec4969ca0cb200adb7e2a8a49c77b7..f6c5a7c93985f419f0967a4bf11c660e76a9fc58 100644 (file)
@@ -33,6 +33,7 @@ EXTRA_DIST =
 
 AM_CPPFLAGS = \
        -include $(top_builddir)/config.h \
+       -D LOCALSTATEDIR=\"$(localstatedir)\" \
        $(OUR_CPPFLAGS)
 
 AM_CFLAGS = \
diff --git a/main.c b/main.c
index eab73e76749cae49c3c17c2ec2f47f129042a3bc..c492b2d99d9cec102dc52375cc9e7489300895c5 100644 (file)
--- a/main.c
+++ b/main.c
@@ -40,7 +40,7 @@
 #include <isc/netmgr.h>
 #include <isc/tls.h>
 
-#define DEFAULT_PATH   "/tmp"
+#define DEFAULT_PATH   LOCALSTATEDIR "/lib/zone-sync"
 
 #define MAX_ZONES              128