diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-07-06 10:52:31 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-07-06 10:52:31 -0400 |
commit | 5d4cf042506c290f6f6c62d95ce2ebb56c854a7a (patch) | |
tree | baaada7bde5cc824b9afc964e41b2b1fd35feb13 | |
parent | 751eb97ef2d281711f47fbef70b59b65f7bc6959 (diff) | |
download | glibc-5d4cf042506c290f6f6c62d95ce2ebb56c854a7a.tar.gz glibc-5d4cf042506c290f6f6c62d95ce2ebb56c854a7a.tar.xz glibc-5d4cf042506c290f6f6c62d95ce2ebb56c854a7a.zip |
Fix handling of chained netgroups
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | inet/getnetgrent_r.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index c853190f71..9b2915e402 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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; |