From: Todd C. Miller Date: Thu, 30 Aug 2007 17:12:00 +0000 (+0000) Subject: Fix pasto, append "!" not negated (which is an int) for sudo -l output. X-Git-Tag: SUDO_1_7_0~398 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a05abf5c88f1d3f412128ce214d49f9a57e9a649;p=sudo Fix pasto, append "!" not negated (which is an int) for sudo -l output. --- diff --git a/parse.c b/parse.c index a490b70e8..c32ceb3c6 100644 --- a/parse.c +++ b/parse.c @@ -483,7 +483,7 @@ print_member(lbuf, name, type, negated, alias_type) case COMMAND: c = (struct sudo_command *) name; if (negated) - lbuf_append(lbuf, negated, NULL); + lbuf_append(lbuf, "!", NULL); lbuf_append_quoted(lbuf, SUDOERS_QUOTED, c->cmnd, NULL); if (c->args) { lbuf_append(lbuf, " ", NULL);