summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 714644f)
raw | patch | inline | side by side (parent: 714644f)
author | Boian Berberov <bberberov@gmail.com> | |
Fri, 12 Sep 2008 14:20:10 +0000 (16:20 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Fri, 12 Sep 2008 14:20:10 +0000 (16:20 +0200) |
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 <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
not used in certain places. Please review these patches and consider them.
Boian Berberov
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/powerdns.c | patch | blob | history |
diff --git a/src/powerdns.c b/src/powerdns.c
index 644dd56b99f3d1dec0ead8d926145a9e7d274582..a0ad3a44e59ffdc339c6a2e32657e7d441f91018 100644 (file)
--- a/src/powerdns.c
+++ b/src/powerdns.c
#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"