diff --git a/give-assist.c b/give-assist.c index 74bb507..95cdd8d 100644 --- a/give-assist.c +++ b/give-assist.c @@ -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);