hexchat: disable setuid() call on server_connect

See https://github.com/termux/x11-packages/issues/163.
This commit is contained in:
Leonid Pliushch 2019-10-20 23:41:39 +03:00 committed by Yaksh Bariya
parent 7020e3420b
commit 0e0b39826d
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A popular and easy to use graphical IRC (chat) client"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
TERMUX_PKG_VERSION=2.14.2
TERMUX_PKG_REVISION=4
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://github.com/hexchat/hexchat/archive/v2.14.2.tar.gz
TERMUX_PKG_SHA256=4f2c2137020913513ea559f788c41039ca6230764d8158862d5d1ee8785592d9
TERMUX_PKG_DEPENDS="gdk-pixbuf, glib, gtk2, liblua, libnotify, libx11, openssl, pango-x, python"

View File

@ -0,0 +1,11 @@
diff -uNr hexchat-2.14.2/src/common/server.c hexchat-2.14.2.mod/src/common/server.c
--- hexchat-2.14.2/src/common/server.c 2018-08-29 19:41:08.000000000 +0300
+++ hexchat-2.14.2.mod/src/common/server.c 2019-10-20 23:40:54.023648082 +0300
@@ -1623,7 +1623,6 @@
case 0:
/* this is the child */
- setuid (getuid ());
server_child (serv);
_exit (0);
}