Fix printing "User_Alias FOO = ALL"
This commit is contained in:
@@ -464,8 +464,11 @@ print_alias(void *v1, void *v2)
|
||||
c = (struct sudo_command *) m->name;
|
||||
printf("%s%s%s", c->cmnd, c->args ? " " : "",
|
||||
c->args ? c->args : "");
|
||||
} else
|
||||
} else if (m->type == ALL) {
|
||||
fputs("ALL", stdout);
|
||||
} else {
|
||||
fputs(m->name, stdout);
|
||||
}
|
||||
}
|
||||
putchar('\n');
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user