File sudo-1.8.22-fix_listpw.patch of Package sudo.14063
From ecc9c366e469988c736629cbe88348c40dcfa31a Mon Sep 17 00:00:00 2001
From: "Todd C. Miller" <Todd.Miller@sudo.ws>
Date: Tue, 22 Jan 2019 06:41:16 -0700
Subject: [PATCH] Fix listpw=never and verifypw=never. Bug #869
---
plugins/sudoers/parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: sudo-1.8.22/plugins/sudoers/parse.c
===================================================================
--- sudo-1.8.22.orig/plugins/sudoers/parse.c
+++ sudo-1.8.22/plugins/sudoers/parse.c
@@ -168,7 +168,7 @@ sudo_file_lookup(struct sudo_nss *nss, i
enum def_tuple pwcheck;
pwcheck = (pwflag == -1) ? never : sudo_defs_table[pwflag].sd_un.tuple;
- nopass = (pwcheck == all) ? true : false;
+ nopass = (pwcheck == never) ? true : false;
if (list_pw == NULL)
SET(validated, FLAG_NO_CHECK);