wbinfo: use wbcAllocateGid()
authorStefan Metzmacher <metze@samba.org>
Fri, 28 Mar 2008 18:39:43 +0000 (19:39 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 Mar 2008 10:17:37 +0000 (12:17 +0200)
metze
(This used to be commit 960c069a2354e0803e2cbf22c26e1a9d0b657b79)

source3/nsswitch/wbinfo.c

index 50a716bd1c5170f05a7a433b6767f65d911e40cb..82d1061f6edb2e231a3f16565406194ca830bf77 100644 (file)
@@ -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);