From bc259150509515f82e33f7d2c9bbc20a077d5d87 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 6 Feb 2019 13:12:33 -0700 Subject: [PATCH] Add stub definition of digest_matches() for SUDOERS_NAME_MATCH --- plugins/sudoers/match.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/sudoers/match.c b/plugins/sudoers/match.c index 47ee4cc0d..93dd8eede 100644 --- a/plugins/sudoers/match.c +++ b/plugins/sudoers/match.c @@ -816,6 +816,16 @@ command_matches_normal(const char *sudoers_cmnd, const char *sudoers_args, const } debug_return_bool(false); } + +static bool +digest_matches(int fd, const char *file, const struct command_digest *digest) +{ + debug_decl(digest_matches, SUDOERS_DEBUG_MATCH) + + /* Digests are not supported when matching only by name. */ + + debug_return_bool(false); +} #else /* !SUDOERS_NAME_MATCH */ static bool -- 2.40.0