From 4f76afc76610a26da85438e5657a6cb5e83c787a Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 13 Aug 2012 18:03:24 +0200 Subject: sss_client: Group lookups should work even when fastcache cannot be initialized https://fedorahosted.org/sssd/ticket/1415 --- src/sss_client/nss_group.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/sss_client') diff --git a/src/sss_client/nss_group.c b/src/sss_client/nss_group.c index 1b9f3a3a..99b7ad91 100644 --- a/src/sss_client/nss_group.c +++ b/src/sss_client/nss_group.c @@ -378,13 +378,10 @@ enum nss_status _nss_sss_getgrnam_r(const char *name, struct group *result, /* fall through, we need to actively ask the parent * if no entry is found */ break; - case EINVAL: + default: /* if using the mmaped cache failed, * fall back to socket based comms */ break; - default: - *errnop = EBADMSG; - return NSS_STATUS_TRYAGAIN; } rd.len = name_len + 1; @@ -467,13 +464,10 @@ enum nss_status _nss_sss_getgrgid_r(gid_t gid, struct group *result, /* fall through, we need to actively ask the parent * if no entry is found */ break; - case EINVAL: + default: /* if using the mmaped cache failed, * fall back to socket based comms */ break; - default: - *errnop = EBADMSG; - return NSS_STATUS_TRYAGAIN; } group_gid = gid; -- cgit