Changeset 944
- Timestamp:
- 01/14/07 14:21:46 (2 years ago)
- Files:
-
- trunk/pdns/pdns/common_startup.cc (modified) (1 diff)
- trunk/pdns/pdns/docs/pdns.sgml (modified) (1 diff)
- trunk/pdns/pdns/pdns_recursor.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pdns/pdns/common_startup.cc
r763 r944 279 279 if(arg().mustDo("master") || arg().mustDo("slave")) 280 280 gethostbyname("a.root-servers.net"); // this forces all lookup libraries to be loaded 281 if(chroot(arg()["chroot"].c_str())<0 ) {281 if(chroot(arg()["chroot"].c_str())<0 || chdir("/")<0) { 282 282 L<<Logger::Error<<"Unable to chroot to '"+arg()["chroot"]+"': "<<strerror(errno)<<", exiting"<<endl; 283 283 exit(1); trunk/pdns/pdns/docs/pdns.sgml
r942 r944 10399 10399 </para> 10400 10400 <para> 10401 SQLite exists in two incompatible versions, numbered 2 and 3, and PowerDNS supports both. It is recommended to go with version 3 as is is newer, has better performance and is10402 a ctively maintained.10401 SQLite exists in two incompatible versions, numbered 2 and 3, and from 2.9.21 onwards, PowerDNS supports both. It is recommended to go with version 3 10402 as it is newer, has better performance and is actively maintained. 10403 10403 </para> 10404 10404 <sect2> trunk/pdns/pdns/pdns_recursor.cc
r935 r944 1656 1656 #ifndef WIN32 1657 1657 if (!::arg()["chroot"].empty()) { 1658 if (chroot(::arg()["chroot"].c_str())<0 ) {1658 if (chroot(::arg()["chroot"].c_str())<0 || chdir("/") < 0) { 1659 1659 L<<Logger::Error<<"Unable to chroot to '"+::arg()["chroot"]+"': "<<strerror (errno)<<", exiting"<<endl; 1660 1660 exit(1);