2018-09-11 23:25:32 +02:00
|
|
|
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
|
2018-10-08 20:44:50 +02:00
|
|
|
+++ xorg-server-1.20.1.mod/hw/xwin/InitOutput.c 2018-10-08 21:07:16.824256995 +0300
|
2018-09-11 23:25:32 +02:00
|
|
|
@@ -285,7 +285,7 @@
|
2018-09-10 00:42:26 +02:00
|
|
|
level = none, curlevel;
|
|
|
|
BOOL binary = TRUE;
|
|
|
|
|
|
|
|
- mnt = setmntent("/etc/mtab", "r");
|
2022-04-05 06:48:20 +02:00
|
|
|
+ mnt = setmntent("@TERMUX_PREFIX@/etc/mtab", "r");
|
2018-09-10 00:42:26 +02:00
|
|
|
if (mnt == NULL) {
|
|
|
|
ErrorF("setmntent failed");
|
|
|
|
return;
|
2018-09-11 23:25:32 +02:00
|
|
|
@@ -294,7 +294,7 @@
|
2018-09-10 00:42:26 +02:00
|
|
|
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);
|
2022-04-05 06:48:20 +02:00
|
|
|
+ BOOL tmp = (strcmp(ent->mnt_dir, "@TERMUX_PREFIX@/tmp") == 0);
|
2018-09-10 00:42:26 +02:00
|
|
|
|
|
|
|
if (sys) {
|
|
|
|
if (root)
|