summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2008-03-31 12:46:46 +0000
committerSven Wegener <swegener@gentoo.org>2008-03-31 12:46:46 +0000
commit54e3b7dcf8d0675b0171d7085032bed47052efe1 (patch)
treeb94c4d288df5c1e154e76a59d3eecdba00906d07 /net-dns/pdns-recursor/files
parentfix incorrect changelog format (diff)
downloadgentoo-2-54e3b7dcf8d0675b0171d7085032bed47052efe1.tar.gz
gentoo-2-54e3b7dcf8d0675b0171d7085032bed47052efe1.tar.bz2
gentoo-2-54e3b7dcf8d0675b0171d7085032bed47052efe1.zip
Version bump.
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-dns/pdns-recursor/files')
-rw-r--r--net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch13
-rw-r--r--net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch9
2 files changed, 22 insertions, 0 deletions
diff --git a/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch b/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch
new file mode 100644
index 000000000000..d30ca4286c02
--- /dev/null
+++ b/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch
@@ -0,0 +1,13 @@
+--- pdns-recursor/pdns_recursor.cc
++++ pdns-recursor/pdns_recursor.cc
+@@ -1565,6 +1565,10 @@
+ }
+ }
+
++ // this is needed to really get into the chroot. and even without chroot
++ // enabled it's nice to not block the directory we're currently in.
++ chdir("/");
++
+ Utility::dropPrivs(newuid, newgid);
+ g_fdm->addReadFD(s_rcc.d_fd, handleRCC); // control channel
+ #endif
diff --git a/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch b/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch
new file mode 100644
index 000000000000..2bd1690084a3
--- /dev/null
+++ b/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch
@@ -0,0 +1,9 @@
+--- pdns-recursor/config.h
++++ pdns-recursor/config.h
+@@ -1,5 +1,5 @@
+ #define SYSCONFDIR "/etc/powerdns/"
+-#define LOCALSTATEDIR "/var/run/"
++#define LOCALSTATEDIR "/var/lib/powerdns"
+ #define VERSION "3.1.5"
+ #define RECURSOR
+ #ifndef WIN32