Fix handling of chained netgroups
This commit is contained in:
parent
751eb97ef2
commit
5d4cf04250
@ -1,3 +1,8 @@
|
||||
2011-07-06 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
|
||||
netgroups to read.
|
||||
|
||||
2011-07-05 Roland McGrath <roland@hack.frob.com>
|
||||
|
||||
* config.make.in (install_root): Default to $(DESTDIR).
|
||||
|
@ -279,6 +279,11 @@ internal_getnetgrent_r (char **hostp, char **userp, char **domainp,
|
||||
namep = namep->next)
|
||||
if (strcmp (datap->val.group, namep->name) == 0)
|
||||
break;
|
||||
if (namep == NULL)
|
||||
for (namep = datap->needed_groups; namep != NULL;
|
||||
namep = namep->next)
|
||||
if (strcmp (datap->val.group, namep->name) == 0)
|
||||
break
|
||||
if (namep != NULL)
|
||||
/* Really ignore. */
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user