chiark / gitweb /
debianutils: Update from 4.8.3 to 4.8.4
[termux-packages] / packages / openssh / openbsd-compat-xcrypt.c.patch
1 diff -u -r ../openssh-7.3p1/openbsd-compat/xcrypt.c ./openbsd-compat/xcrypt.c
2 --- ../openssh-7.3p1/openbsd-compat/xcrypt.c    2016-07-27 18:54:27.000000000 -0400
3 +++ ./openbsd-compat/xcrypt.c   2016-08-08 14:44:44.488143396 -0400
4 @@ -80,6 +80,7 @@
5         if (salt[0] != '\0')
6                 return salt;
7         strlcpy(salt, "xx", sizeof(salt));
8 +#ifndef __ANDROID__
9         setpwent();
10         while ((pw = getpwent()) != NULL) {
11                 passwd = shadow_pw(pw);
12 @@ -92,6 +93,7 @@
13         }
14   out:
15         endpwent();
16 +#endif
17         return salt;
18  }
19