glibc/inet
Siddhesh Poyarekar 58b930ae21 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.
2014-09-10 21:51:50 +05:30
..
arpa
netinet Complete _BSD_SOURCE / _SVID_source followup cleanup. 2014-02-21 21:45:26 +00:00
protocols
aliases.h
bug-if1.c
check_native.c
check_pf.c
ether_aton_r.c
ether_aton.c
ether_hton.c
ether_line.c
ether_ntoa_r.c
ether_ntoa.c
ether_ntoh.c
getaliasent_r.c
getaliasent.c
getaliasname_r.c
getaliasname.c
gethstbyad_r.c
gethstbyad.c
gethstbynm2_r.c
gethstbynm2.c
gethstbynm_r.c
gethstbynm.c
gethstent_r.c
gethstent.c
getipv4sourcefilter.c
getnameinfo.c
getnetbyad_r.c
getnetbyad.c
getnetbynm_r.c
getnetbynm.c
getnetent_r.c
getnetent.c
getnetgrent_r.c Return failure in getnetgrent only when all netgroups have been searched (#17363) 2014-09-10 21:51:50 +05:30
getnetgrent.c
getproto_r.c
getproto.c
getprtent_r.c
getprtent.c
getprtname_r.c
getprtname.c
getrpcbyname_r.c
getrpcbyname.c
getrpcbynumber_r.c
getrpcbynumber.c
getrpcent_r.c
getrpcent.c
getservent_r.c
getservent.c
getsourcefilter.c
getsrvbynm_r.c
getsrvbynm.c
getsrvbypt_r.c
getsrvbypt.c
herrno-loc.c
herrno.c
htonl.c
htons.c
htontest.c
if_index.c
ifaddrs.c
ifaddrs.h
ifreq.c
in6_addr.c
inet6_opt.c
inet6_option.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
inet6_rth.c
inet_lnaof.c
inet_mkadr.c
inet_net.c
inet_netof.c
inet_ntoa.c
Makefile Consistently include Makeconfig after defining subdir. 2014-02-26 23:12:03 +00:00
netgroup.h
rcmd.c
rexec.c
ruserpass.c
setipv4sourcefilter.c
setsourcefilter.c
test_ifindex.c
test-ifaddrs.c
test-inet6_opt.c
tst-checks.c
tst-ether_aton.c
tst-ether_line.c
tst-gethnm.c
tst-getni1.c
tst-getni2.c
tst-inet6_rth.c
tst-network.c
tst-ntoa.c
Versions