termux-packages/x11-packages/putty/no-priv-drop.patch
2022-04-18 14:43:53 +05:30

20 lines
397 B
Diff

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 */