mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 21:12:05 -04:00
[master] update to previous commit: also list chrootdir if applicable
This commit is contained in:
parent
b6214feb63
commit
8f918a34d1
1 changed files with 7 additions and 1 deletions
|
|
@ -8939,7 +8939,13 @@ ns_server_status(ns_server_t *server, isc_buffer_t **text) {
|
|||
snprintf(line, sizeof(line), "last configured: %s\n", configtime);
|
||||
CHECK(putstr(text, line));
|
||||
|
||||
snprintf(line, sizeof(line), "configuration file: %s\n", ns_g_conffile);
|
||||
if (ns_g_chrootdir != NULL) {
|
||||
snprintf(line, sizeof(line), "configuration file: %s (%s%s)\n",
|
||||
ns_g_conffile, ns_g_chrootdir, ns_g_conffile);
|
||||
} else {
|
||||
snprintf(line, sizeof(line), "configuration file: %s\n",
|
||||
ns_g_conffile);
|
||||
}
|
||||
CHECK(putstr(text, line));
|
||||
|
||||
#ifdef ISC_PLATFORM_USETHREADS
|
||||
|
|
|
|||
Loading…
Reference in a new issue