summaryrefslogtreecommitdiff
path: root/source3/nsswitch/wbinfo.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-28 19:39:43 +0100
committerStefan Metzmacher <metze@samba.org>2008-03-31 12:17:37 +0200
commitf4a1e30be537844e38b0be9a80d1d94fc6578383 (patch)
tree1cd17b939ee9832446653026e57021a60a24565d /source3/nsswitch/wbinfo.c
parent0b7610b9c98a1335fc089d834bf193319229f5a2 (diff)
downloadsamba-f4a1e30be537844e38b0be9a80d1d94fc6578383.tar.gz
samba-f4a1e30be537844e38b0be9a80d1d94fc6578383.tar.bz2
samba-f4a1e30be537844e38b0be9a80d1d94fc6578383.zip
wbinfo: use wbcAllocateGid()
metze (This used to be commit 960c069a2354e0803e2cbf22c26e1a9d0b657b79)
Diffstat (limited to 'source3/nsswitch/wbinfo.c')
-rw-r--r--source3/nsswitch/wbinfo.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index 50a716bd1c..82d1061f6e 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -689,10 +689,17 @@ static bool wbinfo_allocate_uid(void)
static bool wbinfo_allocate_gid(void)
{
+ wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;
gid_t gid;
- if (!winbind_allocate_gid(&gid))
+ /* Send request */
+
+ wbc_status = wbcAllocateGid(&gid);
+ if (!WBC_ERROR_IS_OK(wbc_status)) {
return false;
+ }
+
+ /* Display response */
d_printf("New gid: %d\n", gid);