From 54e3b7dcf8d0675b0171d7085032bed47052efe1 Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Mon, 31 Mar 2008 12:46:46 +0000 Subject: Version bump. (Portage version: 2.1.4.4) --- net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch | 13 +++++++++++++ .../pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch create mode 100644 net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch (limited to 'net-dns/pdns-recursor/files') 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 -- cgit v1.2.3-65-gdbad