libice: restore locking functionality
Unlike xorg-iceauth, there should be used symlink() instead of rename().
This commit is contained in:
parent
8fcea6f835
commit
d859f338a4
@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="X11 Inter-Client Exchange library"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.0.10
|
||||
TERMUX_PKG_REVISION=5
|
||||
TERMUX_PKG_REVISION=6
|
||||
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/releases/individual/lib/libICE-${TERMUX_PKG_VERSION}.tar.bz2
|
||||
TERMUX_PKG_SHA256=6f86dce12cf4bcaf5c37dddd8b1b64ed2ddf1ef7b218f22b9942595fb747c348
|
||||
TERMUX_PKG_BUILD_DEPENDS="xorgproto, xorg-util-macros, xtrans"
|
||||
|
@ -6,7 +6,7 @@ diff -uNr libICE-1.0.10/src/authutil.c libICE-1.0.10.mod/src/authutil.c
|
||||
if (creat_fd != -1)
|
||||
{
|
||||
- if (link (creat_name, link_name) != -1)
|
||||
+ if (rename (creat_name, link_name) != -1)
|
||||
+ if (symlink (creat_name, link_name) != -1)
|
||||
return (IceAuthLockSuccess);
|
||||
|
||||
if (errno == ENOENT)
|
||||
|
Loading…
Reference in New Issue
Block a user