From: Michael Tremer Date: Tue, 19 May 2026 15:28:55 +0000 (+0000) Subject: main: Use a more sensible default path X-Git-Tag: 0.0.1~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e426b45378cebf1044946e7630284677878b42a;p=zone-sync.git main: Use a more sensible default path Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 355d9fd..f6c5a7c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 eab73e7..c492b2d 100644 --- a/main.c +++ b/main.c @@ -40,7 +40,7 @@ #include #include -#define DEFAULT_PATH "/tmp" +#define DEFAULT_PATH LOCALSTATEDIR "/lib/zone-sync" #define MAX_ZONES 128