From: | "Sven Wegener (swegener)" <swegener@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-dns/pdns-recursor/files: pdns-recursor-3.1.5-statedir.patch pdns-recursor-3.1.5-chdir.patch |
Date: | Mon, 31 Mar 2008 12:46:49 |
Message-Id: | E1JgJPT-0006LL-CY@stork.gentoo.org |
1 | swegener 08/03/31 12:46:47 |
2 | |
3 | Added: pdns-recursor-3.1.5-statedir.patch |
4 | pdns-recursor-3.1.5-chdir.patch |
5 | Log: |
6 | Version bump. |
7 | (Portage version: 2.1.4.4) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: pdns-recursor-3.1.5-statedir.patch |
16 | =================================================================== |
17 | --- pdns-recursor/config.h |
18 | +++ pdns-recursor/config.h |
19 | @@ -1,5 +1,5 @@ |
20 | #define SYSCONFDIR "/etc/powerdns/" |
21 | -#define LOCALSTATEDIR "/var/run/" |
22 | +#define LOCALSTATEDIR "/var/lib/powerdns" |
23 | #define VERSION "3.1.5" |
24 | #define RECURSOR |
25 | #ifndef WIN32 |
26 | |
27 | |
28 | |
29 | 1.1 net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch |
30 | |
31 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch?rev=1.1&view=markup |
32 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch?rev=1.1&content-type=text/plain |
33 | |
34 | Index: pdns-recursor-3.1.5-chdir.patch |
35 | =================================================================== |
36 | --- pdns-recursor/pdns_recursor.cc |
37 | +++ pdns-recursor/pdns_recursor.cc |
38 | @@ -1565,6 +1565,10 @@ |
39 | } |
40 | } |
41 | |
42 | + // this is needed to really get into the chroot. and even without chroot |
43 | + // enabled it's nice to not block the directory we're currently in. |
44 | + chdir("/"); |
45 | + |
46 | Utility::dropPrivs(newuid, newgid); |
47 | g_fdm->addReadFD(s_rcc.d_fd, handleRCC); // control channel |
48 | #endif |
49 | |
50 | |
51 | |
52 | -- |
53 | gentoo-commits@l.g.o mailing list |