mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
[master] update to previous commit: also list chrootdir if applicable
This commit is contained in:
@@ -8939,7 +8939,13 @@ ns_server_status(ns_server_t *server, isc_buffer_t **text) {
|
|||||||
snprintf(line, sizeof(line), "last configured: %s\n", configtime);
|
snprintf(line, sizeof(line), "last configured: %s\n", configtime);
|
||||||
CHECK(putstr(text, line));
|
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));
|
CHECK(putstr(text, line));
|
||||||
|
|
||||||
#ifdef ISC_PLATFORM_USETHREADS
|
#ifdef ISC_PLATFORM_USETHREADS
|
||||||
|
Reference in New Issue
Block a user