2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

[master] update to previous commit: also list chrootdir if applicable

This commit is contained in:
Evan Hunt
2015-12-02 19:05:46 -08:00
parent b6214feb63
commit 8f918a34d1

View File

@@ -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