termux-packages/x11-packages/xorg-server-xvfb/xorg-server-1.20.1_os_backtrace.c.patch

20 lines
693 B
Diff
Raw Normal View History

diff -uNr xorg-server-1.20.1/os/backtrace.c xorg-server-1.20.1.mod/os/backtrace.c
--- xorg-server-1.20.1/os/backtrace.c 2018-08-07 19:31:05.000000000 +0300
+++ xorg-server-1.20.1.mod/os/backtrace.c 2018-10-08 21:07:16.834261640 +0300
@@ -244,14 +244,13 @@
/* CHILD */
char parent[16];
- seteuid(0);
close(STDIN_FILENO);
close(STDOUT_FILENO);
dup2(pipefd[1], STDOUT_FILENO);
2018-09-10 00:42:26 +02:00
closefrom(STDERR_FILENO);
snprintf(parent, sizeof(parent), "%d", getppid());
- execle("/usr/bin/pstack", "pstack", parent, NULL);
+ execle("@TERMUX_PREFIX@/bin/pstack", "pstack", parent, NULL);
2018-09-10 00:42:26 +02:00
exit(1);
}
else {