Fix syntax errors in the scripts path patch.
This commit is contained in:
parent
a123474ebc
commit
8186788b24
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user