mirror of git://sourceware.org/git/glibc.git
This matches what is currently in nss/nsswitch.conf. The new ordering matches what most distributions use in their installed configuration files. It is common to add localhost to /etc/hosts because the name does not exist in the DNS, but is commonly used as a host name. With the built-in "dns [!UNAVAIL=return] files" default, dns is searched first and provides an answer for "localhost" (NXDOMAIN). We never look at the files database as a result, so the contents of /etc/hosts is ignored. This means that "getent hosts localhost" fail without a /etc/nsswitch.conf file, even though the host name is listed in /etc/hosts. Reviewed-by: Carlos O'Donell <carlos@redhat.com> |
||
|---|---|---|
| .. | ||
| nss_compat | ||
| nss_db | ||
| nss_files | ||
| tst-nss-compat1.root | ||
| tst-nss-db-endgrent.root/etc | ||
| tst-nss-db-endpwent.root | ||
| tst-nss-files-hosts-long.root/etc | ||
| tst-nss-test3.root | ||
| tst-reload1.root | ||
| tst-reload2.root | ||
| Depend | ||
| Makefile | ||
| Versions | ||
| XXX-lookup.c | ||
| alias-lookup.c | ||
| bug-erange.c | ||
| bug17079.c | ||
| compat-lookup.c | ||
| databases.def | ||
| db-Makefile | ||
| digits_dots.c | ||
| ethers-lookup.c | ||
| function.def | ||
| getXXbyYY.c | ||
| getXXbyYY_r.c | ||
| getXXent.c | ||
| getXXent_r.c | ||
| getent.c | ||
| getnssent.c | ||
| getnssent_r.c | ||
| grp-lookup.c | ||
| hosts-lookup.c | ||
| key-lookup.c | ||
| makedb.c | ||
| netgrp-lookup.c | ||
| network-lookup.c | ||
| nss.h | ||
| nss_action.c | ||
| nss_action.h | ||
| nss_action_parse.c | ||
| nss_database.c | ||
| nss_database.h | ||
| nss_fgetent_r.c | ||
| nss_files_data.c | ||
| nss_files_fopen.c | ||
| nss_files_functions.c | ||
| nss_hash.c | ||
| nss_module.c | ||
| nss_module.h | ||
| nss_parse_line_result.c | ||
| nss_readline.c | ||
| nss_test.h | ||
| nss_test.ver | ||
| nss_test1.c | ||
| nss_test2.c | ||
| 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-cancel-getpwuid_r.c | ||
| tst-field.c | ||
| tst-nss-compat1.c | ||
| tst-nss-db-endgrent.c | ||
| tst-nss-db-endpwent.c | ||
| tst-nss-files-alias-leak.c | ||
| tst-nss-files-alias-truncated.c | ||
| tst-nss-files-hosts-erange.c | ||
| tst-nss-files-hosts-getent.c | ||
| tst-nss-files-hosts-long.c | ||
| tst-nss-files-hosts-multi.c | ||
| tst-nss-getpwent.c | ||
| tst-nss-static.c | ||
| tst-nss-test1.c | ||
| tst-nss-test2.c | ||
| tst-nss-test3.c | ||
| tst-nss-test4.c | ||
| tst-nss-test5.c | ||
| tst-reload1.c | ||
| tst-reload2.c | ||
| valid_field.c | ||
| valid_list_field.c | ||