svn commit: trunk/busybox/libpwdgrp

vda at busybox.net vda at busybox.net
Sat Sep 27 23:39:55 UTC 2008


Author: vda
Date: 2008-09-27 16:39:55 -0700 (Sat, 27 Sep 2008)
New Revision: 23537

Log:
remove redundant NULL check



Modified:
   trunk/busybox/libpwdgrp/pwd_grp.c


Changeset:
Modified: trunk/busybox/libpwdgrp/pwd_grp.c
===================================================================
--- trunk/busybox/libpwdgrp/pwd_grp.c	2008-09-27 23:38:26 UTC (rev 23536)
+++ trunk/busybox/libpwdgrp/pwd_grp.c	2008-09-27 23:39:55 UTC (rev 23537)
@@ -661,15 +661,11 @@
 	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;




More information about the busybox-cvs mailing list