mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 21:10:07 +00:00
a70e964ee0
2004-03-30 Jakub Jelinek <jakub@redhat.com> * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): If protocol == NULL, try name/tcp and name/udp first before falling back into the sequential scanning. Use services.byname database for sequential scanning. (_nss_nis_getservbyport_r): Likewise. Just allocate sizeof (int) * 3 chars for integer. * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Convert proto to host by order for snprintf. * nss/getent.c (services_keys): Don't implement lookups with missing protocol using getservent loop, just pass NULL. |
||
---|---|---|
.. | ||
nis-alias.c | ||
nis-ethers.c | ||
nis-grp.c | ||
nis-hosts.c | ||
nis-initgroups.c | ||
nis-netgrp.c | ||
nis-network.c | ||
nis-proto.c | ||
nis-publickey.c | ||
nis-pwd.c | ||
nis-rpc.c | ||
nis-service.c | ||
nis-spwd.c |