putty: disable setuid calls

This commit is contained in:
Leonid Pliushch 2020-09-23 19:30:15 +03:00 committed by Yaksh Bariya
parent 20c3f63cda
commit eaf668165e
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 20 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A terminal integrated SSH/Telnet client"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
TERMUX_PKG_VERSION=0.73
TERMUX_PKG_REVISION=17
TERMUX_PKG_REVISION=18
TERMUX_PKG_SRCURL=https://the.earth.li/~sgtatham/putty/${TERMUX_PKG_VERSION}/putty-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=3db0b5403fb41aecd3aa506611366650d927650b6eb3d839ad4dcc782519df1c
TERMUX_PKG_DEPENDS="atk, gdk-pixbuf, glib, gtk3, libandroid-glob, libandroid-shmem, libcairo, libx11, pango"

View File

@ -0,0 +1,19 @@
diff -uNr putty-0.73/unix/uxpty.c putty-0.73.mod/unix/uxpty.c
--- putty-0.73/unix/uxpty.c 2019-09-22 12:14:52.000000000 +0300
+++ putty-0.73.mod/unix/uxpty.c 2020-09-23 19:29:25.338141793 +0300
@@ -562,6 +562,7 @@
#endif
}
+#ifndef __ANDROID__
/* Drop privs. */
{
#ifndef HAVE_NO_SETRESUID
@@ -587,6 +588,7 @@
}
#endif
}
+#endif
#endif /* NO_PTY_PRE_INIT */