Fix printing "User_Alias FOO = ALL"

This commit is contained in:
Todd C. Miller
2011-03-23 16:00:30 -04:00
parent 71fa43ec47
commit cf8caed3bb

View File

@@ -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;