From 3e7db4828430670ccd76b547a5e8b58c564d0c67 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 6 Mar 2018 14:38:17 -0700 Subject: [PATCH] Don't print an empty user list as ALL. --- plugins/sudoers/testsudoers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sudoers/testsudoers.c b/plugins/sudoers/testsudoers.c index 4982a501d..cf7785044 100644 --- a/plugins/sudoers/testsudoers.c +++ b/plugins/sudoers/testsudoers.c @@ -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 ? " " : "", -- 2.50.1