1 |
jpp |
1.1 |
diff -up ./plugins/sudoers/match.c.seqfault-null-group-list ./plugins/sudoers/match.c |
2 |
|
|
--- ./plugins/sudoers/match.c.seqfault-null-group-list 2015-10-06 14:55:38.034532644 +0200 |
3 |
|
|
+++ ./plugins/sudoers/match.c 2015-10-06 15:00:03.821950086 +0200 |
4 |
|
|
@@ -159,6 +159,9 @@ runaslist_matches(struct member_list *us |
5 |
|
|
int group_matched = UNSPEC; |
6 |
|
|
debug_decl(runaslist_matches, SUDO_DEBUG_MATCH) |
7 |
|
|
|
8 |
|
|
+ if (user_list == NULL)user_list = ∅ |
9 |
|
|
+ if (group_list == NULL)group_list = ∅ |
10 |
|
|
+ |
11 |
|
|
if (runas_pw != NULL) { |
12 |
|
|
/* If no runas user or runas group listed in sudoers, use default. */ |
13 |
|
|
if (tq_empty(user_list) && tq_empty(group_list)) |