From 662d5c75fa63670fbe3be28f030c880b6322805b Mon Sep 17 00:00:00 2001 From: byshen-dev Date: Sat, 1 May 2021 21:12:33 -0700 Subject: [PATCH] Add a log message when the user is not found --- cherokee/connection.c | 1 + cherokee/error_list.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cherokee/connection.c b/cherokee/connection.c index e11c01c3f..5fe3df153 100644 --- a/cherokee/connection.c +++ b/cherokee/connection.c @@ -2032,6 +2032,7 @@ cherokee_connection_build_local_directory_userdir (cherokee_connection_t *co */ ret = cherokee_getpwnam (conn->userdir.buf, &pwd, tmp, sizeof(tmp)); if ((ret != ret_ok) || (pwd.pw_dir == NULL)) { + LOG_ERROR (CHEROKEE_ERROR_CONNECTION_NO_USER, conn->userdir.buf); conn->error_code = http_not_found; return ret_error; } diff --git a/cherokee/error_list.py b/cherokee/error_list.py index 146c6f90c..80ffb087a 100644 --- a/cherokee/error_list.py +++ b/cherokee/error_list.py @@ -981,6 +981,9 @@ title = "Could not get virtual server: '%s'", desc = CODING_BUG) +e('CONNECTION_NO_USER', + title = "User '%s' not found in the system", + desc = "The server is trying to build the local directory string. However, it seems that the user does not exist in the system.") # cherokee/ncpus.c #