[SSSD] sss_client: Group lookups should work even when fastcache cannot be initialized
Jakub Hrozek
jhrozek at redhat.com
Mon Aug 13 16:11:30 UTC 2012
https://fedorahosted.org/sssd/ticket/1415
I tripped over this bug again when I was testing the threading issue,
so I decided to just fix it.
-------------- next part --------------
>From a11573a82a05f109a397553d2995617187d46927 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Mon, 13 Aug 2012 18:03:24 +0200
Subject: [PATCH] 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(-)
diff --git a/src/sss_client/nss_group.c b/src/sss_client/nss_group.c
index 1b9f3a3aa00d274639593f75e9e4c7574159fe0c..99b7ad91531345f2b4e3b8bc2b344100d15148c4 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;
--
1.7.11.2
More information about the sssd-devel
mailing list