termux-packages/x11-packages/xorg-server-xvfb/xorg-server-1.20.1_hw_xwin_InitOutput.c.patch
2022-04-18 14:50:30 +05:30

22 lines
865 B
Diff

diff -uNr xorg-server-1.20.1/hw/xwin/InitOutput.c xorg-server-1.20.1.mod/hw/xwin/InitOutput.c
--- xorg-server-1.20.1/hw/xwin/InitOutput.c 2018-08-07 19:31:04.000000000 +0300
+++ xorg-server-1.20.1.mod/hw/xwin/InitOutput.c 2018-10-08 21:07:16.824256995 +0300
@@ -285,7 +285,7 @@
level = none, curlevel;
BOOL binary = TRUE;
- mnt = setmntent("/etc/mtab", "r");
+ mnt = setmntent("@TERMUX_PREFIX@/etc/mtab", "r");
if (mnt == NULL) {
ErrorF("setmntent failed");
return;
@@ -294,7 +294,7 @@
while ((ent = getmntent(mnt)) != NULL) {
BOOL sys = (winCheckMntOpt(ent, "user") != NULL);
BOOL root = (strcmp(ent->mnt_dir, "/") == 0);
- BOOL tmp = (strcmp(ent->mnt_dir, "/tmp") == 0);
+ BOOL tmp = (strcmp(ent->mnt_dir, "@TERMUX_PREFIX@/tmp") == 0);
if (sys) {
if (root)