termux-packages/packages/dropbear/loginrec.c.patch

15 lines
331 B
Diff
Raw Normal View History

2021-12-15 02:36:15 +01:00
--- a/loginrec.c
+++ b/loginrec.c
@@ -275,7 +275,11 @@
if (username) {
strlcpy(li->username, username, sizeof(li->username));
+#ifdef __ANDROID__
+ pw = getpwuid(getuid());
+#else
pw = getpwnam(li->username);
+#endif
if (pw == NULL)
dropbear_exit("login_init_entry: Cannot find user \"%s\"",
li->username);