From 8186788b24a390a9cb320d036dec4d98bfbc5aac Mon Sep 17 00:00:00 2001 From: Bojan Smojver Date: May 02 2019 22:13:14 +0000 Subject: Fix syntax errors in the scripts path patch. --- diff --git a/xrdp-0.9.10-scripts-libexec.patch b/xrdp-0.9.10-scripts-libexec.patch index dbf60e3..e5f17d0 100644 --- a/xrdp-0.9.10-scripts-libexec.patch +++ b/xrdp-0.9.10-scripts-libexec.patch @@ -11,10 +11,10 @@ diff -ruN xrdp-0.9.10-v/sesman/config.c xrdp-0.9.10/sesman/config.c { /* sizeof operator returns string length including null terminator */ - length = sizeof(XRDP_CFG_PATH) + g_strlen(cf->default_wm) + 1; /* '/' */ -+ length = sizeof(/usr/libexec/xrdp) + g_strlen(cf->default_wm) + 1; /* '/' */ ++ length = sizeof("/usr/libexec/xrdp") + g_strlen(cf->default_wm) + 1; /* '/' */ buf = (char *)g_malloc(length, 0); - g_sprintf(buf, "%s/%s", XRDP_CFG_PATH, cf->default_wm); -+ g_sprintf(buf, "%s/%s", /usr/libexec/xrdp, cf->default_wm); ++ g_sprintf(buf, "%s/%s", "/usr/libexec/xrdp", cf->default_wm); g_free(cf->default_wm); cf->default_wm = g_strdup(buf); g_free(buf); @@ -28,10 +28,10 @@ diff -ruN xrdp-0.9.10-v/sesman/config.c xrdp-0.9.10/sesman/config.c { /* sizeof operator returns string length including null terminator */ - length = sizeof(XRDP_CFG_PATH) + g_strlen(cf->reconnect_sh) + 1; /* '/' */ -+ length = sizeof(/usr/libexec/xrdp) + g_strlen(cf->reconnect_sh) + 1; /* '/' */ ++ length = sizeof("/usr/libexec/xrdp") + g_strlen(cf->reconnect_sh) + 1; /* '/' */ buf = (char *)g_malloc(length, 0); - g_sprintf(buf, "%s/%s", XRDP_CFG_PATH, cf->reconnect_sh); -+ g_sprintf(buf, "%s/%s", /usr/libexec/xrdp, cf->reconnect_sh); ++ g_sprintf(buf, "%s/%s", "/usr/libexec/xrdp", cf->reconnect_sh); g_free(cf->reconnect_sh); cf->reconnect_sh = g_strdup(buf); g_free(buf);