From a05abf5c88f1d3f412128ce214d49f9a57e9a649 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 30 Aug 2007 17:12:00 +0000 Subject: [PATCH] Fix pasto, append "!" not negated (which is an int) for sudo -l output. --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0