chiark / gitweb /
cvs: Add package
[termux-packages] / packages / busybox / libbb-change_identity.c.patch
1 diff -u -r ../busybox-1.24.1/libbb/change_identity.c ./libbb/change_identity.c
2 --- ../busybox-1.24.1/libbb/change_identity.c   2015-07-12 22:18:47.000000000 -0400
3 +++ ./libbb/change_identity.c   2015-10-26 19:29:18.972044695 -0400
4 @@ -33,6 +33,7 @@
5  /* Become the user and group(s) specified by PW.  */
6  void FAST_FUNC change_identity(const struct passwd *pw)
7  {
8 +#ifndef __ANDROID__
9         int res;
10  
11         res = initgroups(pw->pw_name, pw->pw_gid);
12 @@ -57,4 +58,5 @@
13  
14         xsetgid(pw->pw_gid);
15         xsetuid(pw->pw_uid);
16 +#endif
17  }