diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-01-09 20:02:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-01-09 20:02:10 +0000 |
commit | 33df40283320ddd86b39ed1f2a18174dddbfd93b (patch) | |
tree | 5dbe6d8a26bbb0b6cd625762e71796a8fe7e3636 /usr.sbin/bind | |
parent | e04f6eee7df1c9ed66c0f51d7e35b6ea4d9a62a8 (diff) |
does not need a chroot wrapper; ok florian
Diffstat (limited to 'usr.sbin/bind')
-rw-r--r-- | usr.sbin/bind/lib/isc/unix/dir.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/dir.c b/usr.sbin/bind/lib/isc/unix/dir.c index 90d110ad63a..a757cc5dc9d 100644 --- a/usr.sbin/bind/lib/isc/unix/dir.c +++ b/usr.sbin/bind/lib/isc/unix/dir.c @@ -168,34 +168,6 @@ isc_dir_chdir(const char *dirname) { } isc_result_t -isc_dir_chroot(const char *dirname) { -#ifdef HAVE_CHROOT - void *tmp; -#endif - - REQUIRE(dirname != NULL); - -#ifdef HAVE_CHROOT - /* - * Try to use getservbyname and getprotobyname before chroot. - * If WKS records are used in a zone under chroot, Name Service Switch - * may fail to load library in chroot. - * Do not report errors if it fails, we do not need any result now. - */ - tmp = getprotobyname("udp"); - if (tmp != NULL) - (void) getservbyname("domain", "udp"); - - if (chroot(dirname) < 0 || chdir("/") < 0) - return (isc__errno2result(errno)); - - return (ISC_R_SUCCESS); -#else - return (ISC_R_NOTIMPLEMENTED); -#endif -} - -isc_result_t isc_dir_createunique(char *templet) { isc_result_t result; char *x; |