]> granicus.if.org Git - sudo/commitdiff
Fix return values when NAME_MATCH is defined.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 27 Mar 2013 07:39:18 +0000 (03:39 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 27 Mar 2013 07:39:18 +0000 (03:39 -0400)
plugins/sudoers/match.c

index b602eb8103ea32cbc24a880e6c10f2266bbc67e8..bab290db0393f4a37e987f4f9bf432814cf54200 100644 (file)
@@ -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;