From: Boian Berberov Date: Fri, 12 Sep 2008 14:20:10 +0000 (+0200) Subject: powerdns plugin: Use `LOCALSTATEDIR' instead of "/var". X-Git-Tag: collectd-4.4.4~28 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=62738b716a7eefc91018e01f8e4f241ce3d45227;p=collectd.git 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 --- 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"