From 62738b716a7eefc91018e01f8e4f241ce3d45227 Mon Sep 17 00:00:00 2001 From: Boian Berberov Date: Fri, 12 Sep 2008 16:20:10 +0200 Subject: [PATCH] powerdns plugin: Use `LOCALSTATEDIR' instead of "/var". I was working on updating Gentoo's ebuild and I noticed that localstatedir was not used in certain places. Please review these patches and consider them. Boian Berberov Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- src/powerdns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/powerdns.c b/src/powerdns.c index 644dd56b..a0ad3a44 100644 --- a/src/powerdns.c +++ b/src/powerdns.c @@ -45,10 +45,10 @@ #endif #define FUNC_ERROR(func) do { char errbuf[1024]; ERROR ("powerdns plugin: %s failed: %s", func, sstrerror (errno, errbuf, sizeof (errbuf))); } while (0) -#define SERVER_SOCKET "/var/run/pdns.controlsocket" +#define SERVER_SOCKET LOCALSTATEDIR"/run/pdns.controlsocket" #define SERVER_COMMAND "SHOW *" -#define RECURSOR_SOCKET "/var/run/pdns_recursor.controlsocket" +#define RECURSOR_SOCKET LOCALSTATEDIR"/run/pdns_recursor.controlsocket" #define RECURSOR_COMMAND "get noerror-answers nxdomain-answers " \ "servfail-answers sys-msec user-msec qa-latency cache-entries cache-hits " \ "cache-misses questions" -- 2.30.2