Fix handling of chained netgroups

This commit is contained in:
Ulrich Drepper 2011-07-06 10:52:31 -04:00
parent 751eb97ef2
commit 5d4cf04250
2 changed files with 10 additions and 0 deletions

View file

@ -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).

View file

@ -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;