Bug 12424 - Function wbcGetgrlist returns an empty group list
Function wbcGetgrlist returns an empty group list
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other
All All
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2016-11-14 09:21 UTC by Zhang Zujian
Modified: 2016-11-14 09:21 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Zhang Zujian 2016-11-14 09:21:45 UTC
Function wbcGetgrlist(declared in nsswitch/libwbclient/wbclient.h) returns an empty group list.

Here is the description of the function:

 * @brief Return the next struct group* entry from the pwent iterator
 * This is similar to #wbcGetgrent, just that the member list is empty
 * @param **grp     Pointer to resulting struct group* from the query.
 * @return #wbcErr
wbcErr wbcGetgrlist(struct group **grp);

However, in nsswitch/winbind_struct_protocol.h, the corresponding implement is:

/* this is like GETGRENT but gives an empty group list */