aboutsummaryrefslogtreecommitdiff
path: root/grp
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-06-25 10:20:09 +0000
committerRoland McGrath <roland@gnu.org>1996-06-25 10:20:09 +0000
commitc66273aae5213e7e4460631e6b823dc2bf8a79d1 (patch)
treec5aa151e2bd9b5373cd01cce47210a7cf512a31c /grp
parent5f0e6fc702296840d2daa39f83f6cb1e40073d58 (diff)
downloadglibc-c66273aae5213e7e4460631e6b823dc2bf8a79d1.zip
glibc-c66273aae5213e7e4460631e6b823dc2bf8a79d1.tar.gz
glibc-c66273aae5213e7e4460631e6b823dc2bf8a79d1.tar.bz2
* 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.
Diffstat (limited to 'grp')
-rw-r--r--grp/fgetgrent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/grp/fgetgrent.c b/grp/fgetgrent.c
index 031ccb9..aced929 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,);
)