From 381ebbf8d2a309a3bf54462f5632fee415483f00 Mon Sep 17 00:00:00 2001 From: nectar Date: Fri, 18 Apr 2003 01:00:37 +0000 Subject: The default if nsswitch.conf(5) is not present is supposed to be the hated `compat' source, not `files'. Reported by: Philip Paeps Sponsored by: DARPA, Network Associates Laboratories --- lib/libc/gen/getgrent.c | 2 +- lib/libc/gen/getpwent.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index 86ba544..b268aac 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -68,7 +68,7 @@ enum constants { }; static const ns_src defaultsrc[] = { - { NSSRC_FILES, NS_SUCCESS }, + { NSSRC_COMPAT, NS_SUCCESS }, { NULL, 0 } }; diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index 9f4c8a4..15f67df 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -83,7 +83,7 @@ enum constants { }; static const ns_src defaultsrc[] = { - { NSSRC_FILES, NS_SUCCESS }, + { NSSRC_COMPAT, NS_SUCCESS }, { NULL, 0 } }; -- cgit v1.1