mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Don't print an empty user list as ALL.
This commit is contained in:
@@ -487,10 +487,10 @@ print_member(struct member *m)
|
||||
|
||||
if (m->negated)
|
||||
putchar('!');
|
||||
if (m->name == NULL)
|
||||
if (m->type == ALL)
|
||||
fputs("ALL", stdout);
|
||||
else if (m->type != COMMAND)
|
||||
fputs(m->name, stdout);
|
||||
fputs(m->name ? m->name : "", stdout);
|
||||
else {
|
||||
c = (struct sudo_command *) m->name;
|
||||
printf("%s%s%s", c->cmnd, c->args ? " " : "",
|
||||
|
Reference in New Issue
Block a user