]> granicus.if.org Git - sudo/commitdiff
Fix pasto, append "!" not negated (which is an int) for sudo -l output.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 30 Aug 2007 17:12:00 +0000 (17:12 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 30 Aug 2007 17:12:00 +0000 (17:12 +0000)
parse.c

diff --git a/parse.c b/parse.c
index a490b70e8d1995bcf6f0f0d9651b93dcac84bc0b..c32ceb3c6d2be518d52d1112e7079f15ceee574c 100644 (file)
--- 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);