]> granicus.if.org Git - sudo/commitdiff
Add stub definition of digest_matches() for SUDOERS_NAME_MATCH
authorTodd C. Miller <Todd.Miller@sudo.ws>
Wed, 6 Feb 2019 20:12:33 +0000 (13:12 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Wed, 6 Feb 2019 20:12:33 +0000 (13:12 -0700)
plugins/sudoers/match.c

index 47ee4cc0deeb8a2bc2e34e382f920aed6010ef62..93dd8eedeb171d67852a807db3ccbccdadc794fe 100644 (file)
@@ -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