From f4a1e30be537844e38b0be9a80d1d94fc6578383 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 28 Mar 2008 19:39:43 +0100 Subject: wbinfo: use wbcAllocateGid() metze (This used to be commit 960c069a2354e0803e2cbf22c26e1a9d0b657b79) --- source3/nsswitch/wbinfo.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source3/nsswitch') 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); -- cgit