glibc/nss
Florian Weimer 31d0a4fa64 nss_db: Fix initialization of iteration position [BZ #20237]
When get*ent is called without a preceding set*ent, we need
to set the initial iteration position in get*ent.

Reproducer: Add “services: db files” to /etc/nsswitch.conf, then run
“perl -e getservent”.  It will segfault before this change, and exit
silently after it.
2016-06-11 12:12:56 +02:00
..
nss_db
nss_files
alias-lookup.c
bug17079.c
bug-erange.c
databases.def
db-Makefile
Depend
digits_dots.c
ethers-lookup.c
function.def
getent.c
getnssent_r.c
getnssent.c
getXXbyYY_r.c
getXXbyYY.c
getXXent_r.c
getXXent.c
grp-lookup.c
hosts-lookup.c
key-lookup.c
makedb.c
Makefile
netgrp-lookup.c
network-lookup.c
nss_test1.c
nss.h
nsswitch.c
nsswitch.conf
nsswitch.h
proto-lookup.c
pwd-lookup.c
rewrite_field.c
rpc-lookup.c
service-lookup.c
sgrp-lookup.c
spwd-lookup.c
test-digits-dots.c
test-netdb.c
tst-field.c
tst-nss-getpwent.c
tst-nss-static.c
tst-nss-test1.c
valid_field.c
valid_list_field.c
Versions
XXX-lookup.c