From 324a33431552d27d10f20d592d037078dc903538 Mon Sep 17 00:00:00 2001 From: Ian Geiser Date: Mon, 17 Jul 2017 14:02:38 -0400 Subject: [PATCH] append a / to ensure the full path is created even when the config variable lacks a trailing / --- common/os_calls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/os_calls.c b/common/os_calls.c index 04c5007d..60ccda17 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -113,7 +113,7 @@ g_mk_socket_path(const char *app_name) { if (!g_directory_exist(XRDP_SOCKET_PATH)) { - if (!g_create_path(XRDP_SOCKET_PATH)) + if (!g_create_path(XRDP_SOCKET_PATH"/")) { /* if failed, still check if it got created by someone else */ if (!g_directory_exist(XRDP_SOCKET_PATH))