]> git.ipfire.org Git - thirdparty/pdns.git/commit
nproxy: Add missing chdir("/") after chroot() 970/head
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sat, 24 Aug 2013 15:19:38 +0000 (17:19 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Sat, 24 Aug 2013 15:21:18 +0000 (17:21 +0200)
commit4c89ccef2904e48a0e147e17f61359ca9ab1b518
tree67fec3d1f7d11f2b14a9dc4ec2fffde1a5fe341b
parentcd9168935d6c232aa587fb77f5bc95962e675cd5
nproxy: Add missing chdir("/") after chroot()

Also make sure that fd 0,1,2 are correctly replaced with /dev/null.
As we (might) chroot() before daemonizing, we must open /dev/null before
chroot-ing.

Reported-By: Morten Stevens
pdns/nproxy.cc