Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions give-assist.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ static bool taker_group_ok(struct passwd* t){
}

//this is where we are actually checking to see if the access_grp->gr_mem has more than one member
if(onlycontains(t->pw_name, access_grp->gr_mem)){
if(access_grp->gr_mem[0] == NULL || onlycontains(t->pw_name, access_grp->gr_mem)){
if(debug){
printf("taker is alone in uname group\n");
printf("taker is alone (or list is empty) in uname group\n");
}

return (true);
Expand Down