mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-13 13:37:38 +08:00
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.