From 9ac592b21853dc6bbb9cd07e9ab0724a83153efd Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 16 Oct 2016 22:07:34 -0700 Subject: [PATCH] Don't use term "missing" when using default files, it's too alarming Also improve messages when non-absolute path is rejected. --- libxrdp/xrdp_rdp.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c index 3cb075b3..6aff5830 100644 --- a/libxrdp/xrdp_rdp.c +++ b/libxrdp/xrdp_rdp.c @@ -197,8 +197,8 @@ xrdp_rdp_read_config(struct xrdp_client_info *client_info) /* default certificate path */ g_snprintf(client_info->certificate, 1023, "%s/cert.pem", XRDP_CFG_PATH); log_message(LOG_LEVEL_INFO, - "Missing definition of X.509 certificate, use " - "default instead: %s", client_info->certificate); + "Using default X.509 certificate: %s", + client_info->certificate); } else if (value[0] != '/') @@ -206,7 +206,7 @@ xrdp_rdp_read_config(struct xrdp_client_info *client_info) /* default certificate path */ g_snprintf(client_info->certificate, 1023, "%s/cert.pem", XRDP_CFG_PATH); log_message(LOG_LEVEL_WARNING, - "No absolute path to X.509 certificate, use " + "X.509 certificate should use absolute path, using " "default instead: %s", client_info->certificate); } else @@ -222,16 +222,15 @@ xrdp_rdp_read_config(struct xrdp_client_info *client_info) { /* default key_file path */ g_snprintf(client_info->key_file, 1023, "%s/key.pem", XRDP_CFG_PATH); - log_message(LOG_LEVEL_INFO, - "Missing definition of X.509 key file, use " - "default instead: %s", client_info->key_file); + log_message(LOG_LEVEL_INFO, "Using default X.509 key file: %s", + client_info->key_file); } else if (value[0] != '/') { /* default key_file path */ g_snprintf(client_info->key_file, 1023, "%s/key.pem", XRDP_CFG_PATH); log_message(LOG_LEVEL_WARNING, - "No absolute path to X.509 key file, use" + "X.509 key file should use absolute path, using " "default instead: %s", client_info->key_file); } else