diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | inet/getnetgrent_r.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -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). diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c index 42045a201d..b588897df1 100644 --- a/inet/getnetgrent_r.c +++ b/inet/getnetgrent_r.c @@ -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; |