Initial push
[termux-packages] / packages / busybox / change_identity.c.patch
1 diff -u -r ../busybox-1.22.1/libbb/change_identity.c ./libbb/change_identity.c
2 --- ../busybox-1.22.1/libbb/change_identity.c 2014-01-09 19:15:44.000000000 +0100
3 +++ ./libbb/change_identity.c 2014-07-01 09:57:10.000000000 +0200
4 @@ -33,9 +33,11 @@
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 if (initgroups(pw->pw_name, pw->pw_gid) == -1)
10 bb_perror_msg_and_die("can't set groups");
11 endgrent(); /* helps to close a fd used internally by libc */
12 xsetgid(pw->pw_gid);
13 xsetuid(pw->pw_uid);
14 +#endif
15 }