summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-10-05 11:05:08 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-10-13 09:49:37 -0400
commitc640ae818270b1e8d57190516587d06c007d3938 (patch)
tree6b881df7e01aa24ae89641c73adb04af5fd3052d
parenta49350fd978f186bdeae8c5c139c8cfb3d525284 (diff)
downloadsssd-c640ae818270b1e8d57190516587d06c007d3938.tar.gz
sssd-c640ae818270b1e8d57190516587d06c007d3938.tar.xz
sssd-c640ae818270b1e8d57190516587d06c007d3938.zip
Return NSS_STATUS_RETURN instead of NSS_STATUS_NOTFOUND
NSS_STATUS_RETURN needs to be returned to glibc otherwise nested groups are not resolved by glibc.
-rw-r--r--src/sss_client/nss_netgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sss_client/nss_netgroup.c b/src/sss_client/nss_netgroup.c
index f70283fa2..edc5020f3 100644
--- a/src/sss_client/nss_netgroup.c
+++ b/src/sss_client/nss_netgroup.c
@@ -261,7 +261,7 @@ enum nss_status _nss_sss_getnetgrent_r(struct __netgrent *result,
/* no results if not found */
if ((((uint32_t *)repbuf)[0] == 0) || (replen <= NETGR_METADATA_COUNT)) {
free(repbuf);
- return NSS_STATUS_NOTFOUND;
+ return NSS_STATUS_RETURN;
}
sss_nss_getnetgrent_data.data = repbuf;