summaryrefslogtreecommitdiff
path: root/src/sss_client/nss_netgroup.c
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 /src/sss_client/nss_netgroup.c
parenta49350fd978f186bdeae8c5c139c8cfb3d525284 (diff)
downloadsssd-c640ae818270b1e8d57190516587d06c007d3938.tar.gz
sssd-c640ae818270b1e8d57190516587d06c007d3938.tar.bz2
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.
Diffstat (limited to 'src/sss_client/nss_netgroup.c')
-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 f70283fa..edc5020f 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;