libice: restore locking functionality

Unlike xorg-iceauth, there should be used symlink() instead of rename().
This commit is contained in:
Leonid Pliushch 2020-01-05 16:57:20 +02:00 committed by Yaksh Bariya
parent 8fcea6f835
commit d859f338a4
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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)