golang: Update from 1.10.1 to 1.10.2
[termux-packages] / packages / openssh / auth.c.patch
CommitLineData
59f0d218
FF
1diff -u -r ../openssh-6.6p1/auth.c ./auth.c
2--- ../openssh-6.6p1/auth.c 2013-06-01 23:41:51.000000000 +0200
3+++ ./auth.c 2014-06-04 12:59:53.060699278 +0200
4@@ -603,7 +603,13 @@
5 aix_setauthdb(user);
6 #endif
7
8+#ifdef __ANDROID__
9+ /* Effectively a single-user system, use current user no matter supplied user */
10+ pw = getpwuid(getuid());
11+#else
12 pw = getpwnam(user);
13+#endif
14+
15
16 #if defined(_AIX) && defined(HAVE_SETAUTHDB)
17 aix_restoreauthdb();