]> git.ipfire.org Git - thirdparty/glibc.git/commit - NEWS
Return failure in getnetgrent only when all netgroups have been searched (#17363)
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 10 Sep 2014 16:21:50 +0000 (21:51 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 10 Sep 2014 16:21:50 +0000 (21:51 +0530)
commit58b930ae216bfa98cd60212b954b07b9963d6d04
tree138f7c7f93f4fb99d0c61dd03c5f1d78c3135f40
parent71ae86478edc7b21872464f43fb29ff650c1681a
Return failure in getnetgrent only when all netgroups have been searched (#17363)

The netgroups lookup code fails when one of the groups in the search
tree is empty.  In such a case it only returns the leaves of the tree
after the blank netgroup.  This is because the line parser returns a
NOTFOUND status when the netgroup exists but is empty.  The
__getnetgrent_internal implementation needs to be fixed to try
remaining groups if the current group is entry.  This patch implements
this fix.  Tested on x86_64.

[BZ #17363]
* inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
group if the current group is empty.
ChangeLog
NEWS
inet/getnetgrent_r.c