2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-05 08:45:28 +00:00

When matching a RunasAlias for a runas group, pass the alias in as

the group_list, not the user_list.  From Daniel Kopecek.
This commit is contained in:
Todd C. Miller
2011-10-25 10:34:31 -04:00
parent 9b2c889812
commit 6973ed5eb4

View File

@@ -211,7 +211,7 @@ _runaslist_matches(struct member_list *user_list, struct member_list *group_list
break;
case ALIAS:
if ((a = alias_find(m->name, RUNASALIAS)) != NULL) {
rval = _runaslist_matches(&a->members, &empty);
rval = _runaslist_matches(&empty, &a->members);
if (rval != UNSPEC)
group_matched = m->negated ? !rval : rval;
break;