termux-packages/x11-packages/putty/no-priv-drop.patch

19 lines
266 B
Diff

--- a/unix/pty.c
+++ b/unix/pty.c
@@ -563,6 +563,7 @@
#endif
}
+#ifndef __ANDROID__
/* Drop privs. */
{
#if HAVE_SETRESUID && HAVE_SETRESGID
@@ -588,6 +589,7 @@
}
#endif
}
+#endif /* __ANDROID__ */
#endif /* NO_PTY_PRE_INIT */