From f9573e99087158cc78df1829021bdbfda05db350 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Mon, 27 Mar 2023 11:01:06 +0900 Subject: [PATCH] xrdp: add log when failed to open keymap file --- xrdp/lang.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xrdp/lang.c b/xrdp/lang.c index 2579266f..234a2d5f 100644 --- a/xrdp/lang.c +++ b/xrdp/lang.c @@ -287,8 +287,8 @@ int km_load_file(const char *filename, struct xrdp_keymap *keymap) { int fd; - fd = g_file_open(filename); LOG(LOG_LEVEL_INFO, "Loading keymap file %s", filename); + fd = g_file_open(filename); if (fd != -1) { @@ -306,6 +306,7 @@ int km_load_file(const char *filename, struct xrdp_keymap *keymap) } else { + LOG(LOG_LEVEL_ERROR, "Error loading keymap file %s (%s)", filename, g_get_strerror()); return 1; }