glibc/inet
Siddhesh Poyarekar dd3022d75e Return NULL for wildcard values in getnetgrent from nscd (BZ #16759)
getnetgrent is supposed to return NULL for values that are wildcards
in the (host, user, domain) triplet.  This works correctly with nscd
disabled, but with it enabled, it returns a blank ("") instead of a
NULL.  This is easily seen with the output of `getent netgroup foonet`
for a netgroup foonet defined as follows in /etc/netgroup:

    foonet (,foo,)

The output with nscd disabled is:

    foonet ( ,foo,)

while with nscd enabled, it is:

    foonet (,foo,)

The extra space with nscd disabled is due to the fact that `getent
netgroup` adds it if the return value from getnetgrent is NULL for
either host or user.
2014-03-27 19:49:51 +05:30
..
arpa
netinet
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 NULL for wildcard values in getnetgrent from nscd (BZ #16759) 2014-03-27 19:49:51 +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
inet6_rth.c
inet_lnaof.c
inet_mkadr.c
inet_net.c
inet_netof.c
inet_ntoa.c
Makefile
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