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
5 /* Become the user and group(s) specified by PW. */
6 void FAST_FUNC change_identity(const struct passwd *pw)
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 */