mirror of
https://github.com/samba-team/samba.git
synced 2025-11-18 00:23:50 +03:00
r805: Fix to stop smbd hanging on missing group member from "Jianliang Lu" <j.lu@tiesse.com>.
Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
d97b9146a1
commit
d5fb5ba9df
@@ -3295,16 +3295,12 @@ static BOOL get_memberuids(gid_t gid, uid_t **uids, int *num)
|
||||
|
||||
/* Secondary group members */
|
||||
|
||||
gr = grp->gr_mem;
|
||||
while ((*gr != NULL) && ((*gr)[0] != '\0')) {
|
||||
for (gr = grp->gr_mem; (*gr != NULL) && ((*gr)[0] != '\0'); gr += 1) {
|
||||
struct passwd *pw = getpwnam(*gr);
|
||||
|
||||
if (pw == NULL)
|
||||
continue;
|
||||
|
||||
add_uid_to_array_unique(pw->pw_uid, uids, num);
|
||||
|
||||
gr += 1;
|
||||
}
|
||||
|
||||
winbind_on();
|
||||
|
||||
Reference in New Issue
Block a user