From d539c606e07a299bdbf29ea0c77be88ff0fbfb3b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 12 Mar 2012 19:34:19 -0400 Subject: [PATCH] Fix bogus int -> bool conversion; tags can have a value of -1. --- plugins/sudoers/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/parse.c b/plugins/sudoers/parse.c index db77ad711..66385f07a 100644 --- a/plugins/sudoers/parse.c +++ b/plugins/sudoers/parse.c @@ -169,7 +169,7 @@ sudo_file_lookup(struct sudo_nss *nss, int validated, int pwflag) * Always check the host and user. */ if (pwflag) { - bool nopass; + int nopass; enum def_tuple pwcheck; pwcheck = (pwflag == -1) ? never : sudo_defs_table[pwflag].sd_un.tuple; -- 2.40.0