mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
Fix printing "User_Alias FOO = ALL"
This commit is contained in:
parent
71fa43ec47
commit
cf8caed3bb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user