From: Stefan Metzmacher Date: Fri, 28 Mar 2008 18:39:43 +0000 (+0100) Subject: wbinfo: use wbcAllocateGid() X-Git-Tag: samba-3.3.0pre1~3003 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=960c069a2354e0803e2cbf22c26e1a9d0b657b79;p=thirdparty%2Fsamba.git wbinfo: use wbcAllocateGid() metze --- diff --git a/source/nsswitch/wbinfo.c b/source/nsswitch/wbinfo.c index 50a716bd1c5..82d1061f6ed 100644 --- a/source/nsswitch/wbinfo.c +++ b/source/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);