From c66273aae5213e7e4460631e6b823dc2bf8a79d1 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 25 Jun 1996 10:20:09 +0000 Subject: * 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. --- grp/fgetgrent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'grp') diff --git a/grp/fgetgrent.c b/grp/fgetgrent.c index 031ccb9c92..aced929621 100644 --- a/grp/fgetgrent.c +++ b/grp/fgetgrent.c @@ -31,9 +31,9 @@ struct grent_data {}; #include "../nss/nss_files/files-parse.c" LINE_PARSER ( - STRING_FIELD (result->gr_name, ISCOLON); - STRING_FIELD (result->gr_passwd, ISCOLON); - INT_FIELD (result->gr_gid, ISCOLON, 10,); + STRING_FIELD (result->gr_name, ISCOLON, 0); + STRING_FIELD (result->gr_passwd, ISCOLON, 0); + INT_FIELD (result->gr_gid, ISCOLON, 0, 10,); ) -- cgit v1.2.1