summaryrefslogtreecommitdiff
path: root/net/powerdns-recursor/patches/patch-rec__control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/powerdns-recursor/patches/patch-rec__control.cc')
-rw-r--r--net/powerdns-recursor/patches/patch-rec__control.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/powerdns-recursor/patches/patch-rec__control.cc b/net/powerdns-recursor/patches/patch-rec__control.cc
new file mode 100644
index 00000000000..e8178f541e7
--- /dev/null
+++ b/net/powerdns-recursor/patches/patch-rec__control.cc
@@ -0,0 +1,22 @@
+$NetBSD: patch-rec__control.cc,v 1.1.2.2 2020/06/25 18:21:29 bsiegert Exp $
+
+--- rec_control.cc.orig 2020-05-08 09:30:45.000000000 +0000
++++ rec_control.cc
+@@ -39,7 +39,7 @@ static void initArguments(int argc, char
+ {
+ arg().set("config-dir","Location of configuration directory (recursor.conf)")=SYSCONFDIR;
+
+- arg().set("socket-dir",string("Where the controlsocket will live, ")+LOCALSTATEDIR+"/pdns-recursor when unset and not chrooted" )="";
++ arg().set("socket-dir",string("Where the controlsocket will live, ")+LOCALSTATEDIR+" when unset and not chrooted" )="";
+ arg().set("chroot","switch to chroot jail")="";
+ arg().set("process","When controlling multiple recursors, the target process number")="";
+ arg().set("timeout", "Number of seconds to wait for the recursor to respond")="5";
+@@ -72,7 +72,7 @@ static void initArguments(int argc, char
+
+ if (::arg()["socket-dir"].empty()) {
+ if (::arg()["chroot"].empty())
+- ::arg().set("socket-dir") = std::string(LOCALSTATEDIR) + "/pdns-recursor";
++ ::arg().set("socket-dir") = std::string(LOCALSTATEDIR);
+ else
+ ::arg().set("socket-dir") = ::arg()["chroot"] + "/";
+ } else if (!::arg()["chroot"].empty()) {