From 0e0b39826defbddb467c746fa87ef19afdaf9904 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sun, 20 Oct 2019 23:41:39 +0300 Subject: [PATCH] hexchat: disable setuid() call on server_connect See https://github.com/termux/x11-packages/issues/163. --- x11-packages/hexchat/build.sh | 2 +- x11-packages/hexchat/no-setuid.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 x11-packages/hexchat/no-setuid.patch diff --git a/x11-packages/hexchat/build.sh b/x11-packages/hexchat/build.sh index 320c58060..1884ca69f 100644 --- a/x11-packages/hexchat/build.sh +++ b/x11-packages/hexchat/build.sh @@ -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 " 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" diff --git a/x11-packages/hexchat/no-setuid.patch b/x11-packages/hexchat/no-setuid.patch new file mode 100644 index 000000000..b199ca4c7 --- /dev/null +++ b/x11-packages/hexchat/no-setuid.patch @@ -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); + }