diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-03-28 19:39:43 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-03-31 12:17:37 +0200 |
commit | f4a1e30be537844e38b0be9a80d1d94fc6578383 (patch) | |
tree | 1cd17b939ee9832446653026e57021a60a24565d /source3/nsswitch | |
parent | 0b7610b9c98a1335fc089d834bf193319229f5a2 (diff) | |
download | samba-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')
-rw-r--r-- | source3/nsswitch/wbinfo.c | 9 |
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); |