diff options
-rw-r--r-- | libpwdgrp/pwd_grp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c index 223cbde36..56bfcbe91 100644 --- a/libpwdgrp/pwd_grp.c +++ b/libpwdgrp/pwd_grp.c | |||
@@ -661,15 +661,11 @@ int initgroups(const char *user, gid_t gid) | |||
661 | int ngroups; | 661 | int ngroups; |
662 | gid_t *group_list = getgrouplist_internal(&ngroups, user, gid); | 662 | gid_t *group_list = getgrouplist_internal(&ngroups, user, gid); |
663 | 663 | ||
664 | if (!group_list) | ||
665 | return -1; | ||
666 | |||
667 | ngroups = setgroups(ngroups, group_list); | 664 | ngroups = setgroups(ngroups, group_list); |
668 | free(group_list); | 665 | free(group_list); |
669 | return ngroups; | 666 | return ngroups; |
670 | } | 667 | } |
671 | 668 | ||
672 | /* TODO: uclibc needs this ported to it! */ | ||
673 | int getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups) | 669 | int getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups) |
674 | { | 670 | { |
675 | int ngroups_old = *ngroups; | 671 | int ngroups_old = *ngroups; |