From 64e558bcfb8e3561b06fb04bede4a747b38afa4c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 27 Mar 2013 03:39:18 -0400 Subject: [PATCH] Fix return values when NAME_MATCH is defined. --- plugins/sudoers/match.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sudoers/match.c b/plugins/sudoers/match.c index b602eb810..bab290db0 100644 --- a/plugins/sudoers/match.c +++ b/plugins/sudoers/match.c @@ -545,7 +545,7 @@ command_matches_glob(char *sudoers_cmnd, char *sudoers_args) #endif /* NAME_MATCH */ #ifdef NAME_MATCH -static int +static bool command_matches_normal(char *sudoers_cmnd, char *sudoers_args) { size_t dlen; @@ -612,7 +612,7 @@ command_matches_normal(char *sudoers_cmnd, char *sudoers_args) * Return true if user_cmnd begins with sudoers_dir, else false. * Note that sudoers_dir include the trailing '/' */ -static int +static bool command_matches_dir(char *sudoers_dir, size_t dlen) { return strncmp(user_cmnd, sudoers_dir, dlen) == 0;