termux-packages/packages/openssh/ssh-agent.c.patch
Gerben Meijer d1a4764e08 Don't use setresgid or setgid in ssh-agent
Fixes it for Android Pie, see #2714
2018-08-09 23:03:48 +02:00

16 lines
394 B
Diff

diff -ruN a/ssh-agent.c b/ssh-agent.c
--- a/ssh-agent.c 2018-08-08 13:44:30.076228968 +0200
+++ b/ssh-agent.c 2018-08-08 13:46:37.282997806 +0200
@@ -1064,9 +1064,11 @@
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
sanitise_stdfd();
+#ifndef __ANDROID__
/* drop */
setegid(getgid());
setgid(getgid());
+#endif
platform_disable_tracing(0); /* strict=no */