1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

* nss/nss_files/files-parse.c (parse_list): Reset ELT for elements

after the first!

	* nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
	or doesn't mention DATABASE, use an internal default equivalent to
	"DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
	(nss_lookup_function): Call nss_new_service as needed.
	(nss_parse_file): Don't bother calling nss_new_service here.

	* grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
	* pwd/fgetpwent.c: Likewise.
This commit is contained in:
Roland McGrath
1996-06-25 10:20:09 +00:00
parent 5f0e6fc702
commit c66273aae5
5 changed files with 77 additions and 41 deletions

View File

@@ -137,6 +137,7 @@ parse_list (char *line, struct parser_data *data, int datalen)
do
++line;
while (TRAILING_LIST_SEPARATOR_P (*line));
elt = line;
}
else if (*line == '\0' || *line == '\n')
{