summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-08-13 18:03:24 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-08-13 20:43:30 +0200
commit4f76afc76610a26da85438e5657a6cb5e83c787a (patch)
tree4c6fc5a3d6626e4d517ef3d4d2f87f3b4828bde1 /src
parentee2aa1814aaaaed7c6eaaa099cdb40de9bf0be65 (diff)
downloadsssd_unused-4f76afc76610a26da85438e5657a6cb5e83c787a.zip
sssd_unused-4f76afc76610a26da85438e5657a6cb5e83c787a.tar.gz
sssd_unused-4f76afc76610a26da85438e5657a6cb5e83c787a.tar.xz
sss_client: Group lookups should work even when fastcache cannot be initialized
https://fedorahosted.org/sssd/ticket/1415
Diffstat (limited to 'src')
-rw-r--r--src/sss_client/nss_group.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/sss_client/nss_group.c b/src/sss_client/nss_group.c
index 1b9f3a3..99b7ad9 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;