mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Don't print an empty user list as ALL.
This commit is contained in:
parent
bb31544fcc
commit
3e7db48284
@ -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 ? " " : "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user