0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 13:46:16 +00:00
termux-packages/x11-packages/tigervnc/tigervnc-1.9.0_unix_xserver_hw_vnc_xvnc.c.patch
Leonid Pliushch 0e280f4735
tigervnc: use TCSANOW in vncpasswd
Now password won't be echoed when using tool 'vncpasswd'.
2022-04-18 14:08:06 +05:30

21 lines
887 B
Diff

diff -uNr tigervnc-1.9.0/unix/xserver/hw/vnc/xvnc.c tigervnc-1.9.0.mod/unix/xserver/hw/vnc/xvnc.c
--- tigervnc-1.9.0/unix/xserver/hw/vnc/xvnc.c 2018-07-16 17:08:55.000000000 +0300
+++ tigervnc-1.9.0.mod/unix/xserver/hw/vnc/xvnc.c 2018-09-12 11:14:21.789657049 +0300
@@ -339,13 +339,13 @@
char file[256];
if (vncIsTCPPortUsed(6000+num))
return FALSE;
- sprintf(file, "/tmp/.X%d-lock", num);
+ sprintf(file, "@TERMUX_PREFIX@/tmp/.X%d-lock", num);
if (access(file, F_OK) == 0)
return FALSE;
- sprintf(file, "/tmp/.X11-unix/X%d", num);
+ sprintf(file, "@TERMUX_PREFIX@/tmp/.X11-unix/X%d", num);
if (access(file, F_OK) == 0)
return FALSE;
- sprintf(file, "/usr/spool/sockets/X11/%d", num);
+ sprintf(file, "@TERMUX_PREFIX@/spool/sockets/X11/%d", num);
if (access(file, F_OK) == 0)
return FALSE;
return TRUE;