projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb04506
)
remove redundant NULL check
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 27 Sep 2008 23:39:55 +0000
(23:39 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 27 Sep 2008 23:39:55 +0000
(23:39 -0000)
libpwdgrp/pwd_grp.c
patch
|
blob
|
history
diff --git
a/libpwdgrp/pwd_grp.c
b/libpwdgrp/pwd_grp.c
index 223cbde36890c335755c40c1e62e2f789f9c42ef..56bfcbe9138a5f2ccb1016188898bf4f54061151 100644
(file)
--- a/
libpwdgrp/pwd_grp.c
+++ b/
libpwdgrp/pwd_grp.c
@@
-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;