2021-02-09 21:33:01 +01:00
|
|
|
diff -uNr xrdp-0.9.15/sesman/sesman.c xrdp-0.9.15.mod/sesman/sesman.c
|
|
|
|
--- xrdp-0.9.15/sesman/sesman.c 2020-12-28 14:03:43.000000000 +0000
|
|
|
|
+++ xrdp-0.9.15.mod/sesman/sesman.c 2021-02-09 20:42:04.596481217 +0000
|
|
|
|
@@ -573,14 +573,14 @@
|
2018-12-27 23:45:59 +01:00
|
|
|
g_mk_socket_path("xrdp-sesman");
|
|
|
|
|
|
|
|
/* make sure the /tmp/.X11-unix directory exists */
|
|
|
|
- if (!g_directory_exist("/tmp/.X11-unix"))
|
|
|
|
+ if (!g_directory_exist("@TERMUX_PREFIX@/tmp/.X11-unix"))
|
|
|
|
{
|
|
|
|
- if (!g_create_dir("/tmp/.X11-unix"))
|
|
|
|
+ if (!g_create_dir("@TERMUX_PREFIX@/tmp/.X11-unix"))
|
|
|
|
{
|
2021-02-09 21:33:01 +01:00
|
|
|
LOG(LOG_LEVEL_ERROR,
|
2018-12-27 23:45:59 +01:00
|
|
|
- "sesman.c: error creating dir /tmp/.X11-unix");
|
|
|
|
+ "sesman.c: error creating dir @TERMUX_PREFIX@/tmp/.X11-unix");
|
|
|
|
}
|
|
|
|
- g_chmod_hex("/tmp/.X11-unix", 0x1777);
|
|
|
|
+ g_chmod_hex("@TERMUX_PREFIX@/tmp/.X11-unix", 0x1777);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_snprintf(text, 255, "xrdp_sesman_%8.8x_main_term", g_pid);
|
2021-02-09 21:33:01 +01:00
|
|
|
diff -uNr xrdp-0.9.15/sesman/session.c xrdp-0.9.15.mod/sesman/session.c
|
|
|
|
--- xrdp-0.9.15/sesman/session.c 2020-12-28 14:03:43.000000000 +0000
|
|
|
|
+++ xrdp-0.9.15.mod/sesman/session.c 2021-02-09 20:40:54.773164884 +0000
|
|
|
|
@@ -168,12 +168,12 @@
|
2018-12-27 23:45:59 +01:00
|
|
|
int x_running;
|
|
|
|
int sck;
|
|
|
|
|
|
|
|
- g_sprintf(text, "/tmp/.X11-unix/X%d", display);
|
|
|
|
+ g_sprintf(text, "@TERMUX_PREFIX@/tmp/.X11-unix/X%d", display);
|
|
|
|
x_running = g_file_exist(text);
|
|
|
|
|
|
|
|
if (!x_running)
|
|
|
|
{
|
|
|
|
- g_sprintf(text, "/tmp/.X%d-lock", display);
|
|
|
|
+ g_sprintf(text, "@TERMUX_PREFIX@/tmp/.X%d-lock", display);
|
|
|
|
x_running = g_file_exist(text);
|
|
|
|
}
|
|
|
|
|
2021-02-09 21:33:01 +01:00
|
|
|
@@ -254,12 +254,12 @@
|
2018-12-27 23:45:59 +01:00
|
|
|
char text[256];
|
|
|
|
int x_running;
|
|
|
|
|
|
|
|
- g_sprintf(text, "/tmp/.X11-unix/X%d", display);
|
|
|
|
+ g_sprintf(text, "@TERMUX_PREFIX@/tmp/.X11-unix/X%d", display);
|
|
|
|
x_running = g_file_exist(text);
|
|
|
|
|
|
|
|
if (!x_running)
|
|
|
|
{
|
|
|
|
- g_sprintf(text, "/tmp/.X%d-lock", display);
|
|
|
|
+ g_sprintf(text, "@TERMUX_PREFIX@/tmp/.X%d-lock", display);
|
|
|
|
x_running = g_file_exist(text);
|
|
|
|
}
|
|
|
|
|
2021-02-09 21:33:01 +01:00
|
|
|
diff -uNr xrdp-0.9.15/xrdp/xrdp_mm.c xrdp-0.9.15.mod/xrdp/xrdp_mm.c
|
|
|
|
--- xrdp-0.9.15/xrdp/xrdp_mm.c 2020-12-28 14:03:43.000000000 +0000
|
|
|
|
+++ xrdp-0.9.15.mod/xrdp/xrdp_mm.c 2021-02-09 20:40:54.773164884 +0000
|
|
|
|
@@ -2458,7 +2458,7 @@
|
2018-12-27 23:45:59 +01:00
|
|
|
header.bytes_follow = enc_done->comp_bytes - (2 + pheader_bytes[0]);
|
|
|
|
if (ii == 0)
|
|
|
|
{
|
|
|
|
- ii = g_file_open("/tmp/jpeg.beef.bin");
|
|
|
|
+ ii = g_file_open("@TERMUX_PREFIX@/tmp/jpeg.beef.bin");
|
|
|
|
if (ii == -1)
|
|
|
|
{
|
|
|
|
ii = 0;
|