termux-packages/x11-packages/libxau/libXau-1.0.8_AuLock.c.patch
Leonid Pliushch 55d90a14a0
Revert "libxau: use rename(2) instead of symlink(2) when locking"
Breaks locking on at least 'xorg-xauth'.

However, rename(2)-based locks seems working good for tigervnc and
xorg-xvfb packages.
2022-04-18 14:08:20 +05:30

13 lines
444 B
Diff

diff -uNr libXau-1.0.8/AuLock.c libXau-1.0.8.mod/AuLock.c
--- libXau-1.0.8/AuLock.c 2013-05-25 01:04:09.000000000 +0300
+++ libXau-1.0.8.mod/AuLock.c 2017-11-23 14:08:52.004479977 +0200
@@ -91,7 +91,7 @@
} else
#endif
{
- if (link (creat_name, link_name) != -1)
+ if (symlink (creat_name, link_name) != -1)
return LOCK_SUCCESS;
if (errno == ENOENT) {
creat_fd = -1; /* force re-creat next time around */