From 41989d828d57bdcad51e7c6c1b60e10f3e95ec50 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Fri, 2 Dec 2016 20:26:14 +1000 Subject: [PATCH] * show statedir value in 'status' cmd --- src/daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon.c b/src/daemon.c index d8b9b0a..739387f 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -100,8 +100,8 @@ f2b_cmsg_process(const f2b_cmsg_t *msg, char *res, size_t ressize) { } else if (msg->type == CMD_SHUTDOWN) { state = stop; } else if (msg->type == CMD_STATUS) { - snprintf(line, sizeof(line), "pid: %u\npidfile: %s\ncsocket: %s\njails:\n", - getpid(), appconfig.pidfile_path, appconfig.csocket_path); + snprintf(line, sizeof(line), "pid: %u\npidfile: %s\ncsocket: %s\nstatedir: %s\njails:\n", + getpid(), appconfig.pidfile_path, appconfig.csocket_path, appconfig.statedir_path); strlcpy(res, line, ressize); for (jail = jails; jail != NULL; jail = jail->next) { snprintf(line, sizeof(line), "- %s\n", jail->name);