hush: fix \<newline> handling on NOMMU
[oweals/busybox.git] / libpwdgrp / pwd_grp.c
index 223cbde36890c335755c40c1e62e2f789f9c42ef..e2077ade0be1ba45c0564705108f12fe7b450501 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 #include "libbb.h"
-#include <features.h>
+//#include <features.h>
 #include <assert.h>
 
 #ifndef _PATH_SHADOW
@@ -661,15 +661,11 @@ int initgroups(const char *user, gid_t gid)
        int ngroups;
        gid_t *group_list = getgrouplist_internal(&ngroups, user, gid);
 
-       if (!group_list)
-               return -1;
-
        ngroups = setgroups(ngroups, group_list);
        free(group_list);
        return ngroups;
 }
 
-/* TODO: uclibc needs this ported to it! */
 int getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups)
 {
        int ngroups_old = *ngroups;