summaryrefslogtreecommitdiffstats
path: root/nss_client
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-10-13 07:00:54 -0400
committerSimo Sorce <idra@samba.org>2008-10-13 07:00:54 -0400
commit6389867a6038c8ae3b8bd1ea88726f3b650d067b (patch)
tree13f9704d655c831558ae175ef37d5d440f60a3fd /nss_client
parent40b2779eab3a91e6e1f131bbb1b85facaf3c4eaf (diff)
downloadsssd-6389867a6038c8ae3b8bd1ea88726f3b650d067b.tar.gz
sssd-6389867a6038c8ae3b8bd1ea88726f3b650d067b.tar.xz
sssd-6389867a6038c8ae3b8bd1ea88726f3b650d067b.zip
Fix getgrgid()
Diffstat (limited to 'nss_client')
-rw-r--r--nss_client/group.c2
-rw-r--r--nss_client/sss_nss.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/nss_client/group.c b/nss_client/group.c
index 152b4de15..43dbb6d6a 100644
--- a/nss_client/group.c
+++ b/nss_client/group.c
@@ -290,7 +290,7 @@ enum nss_status _nss_sss_getgrgid_r(gid_t gid, struct group *result,
rd.len = sizeof(uint64_t);
rd.data = &group_gid;
- nret = sss_nss_make_request(SSS_NSS_GETPWUID, &rd,
+ nret = sss_nss_make_request(SSS_NSS_GETGRGID, &rd,
&repbuf, &replen, errnop);
if (nret != NSS_STATUS_SUCCESS) {
return nret;
diff --git a/nss_client/sss_nss.h b/nss_client/sss_nss.h
index 646f8ffe0..d41368102 100644
--- a/nss_client/sss_nss.h
+++ b/nss_client/sss_nss.h
@@ -39,7 +39,7 @@ enum sss_nss_command {
/* group */
SSS_NSS_GETGRNAM = 0x0021,
- SSS_NSS_GETGRUID = 0x0022,
+ SSS_NSS_GETGRGID = 0x0022,
SSS_NSS_SETGRENT = 0x0023,
SSS_NSS_GETGRENT = 0x0024,
SSS_NSS_ENDGRENT = 0x0025,