From: Todd C. Miller Date: Sat, 5 Jun 2004 17:42:04 +0000 (+0000) Subject: Add NOMATCH and UNSPEC defines (-1 and -2 respectively) and use X-Git-Tag: SUDO_1_6_8~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a99f53e2fa2333e56f4e6a14b45135a88f376399;p=sudo Add NOMATCH and UNSPEC defines (-1 and -2 respectively) and use these in parse.yacc. Also in parse.yacc initialize the *_matches vars to UNSPEC and add two macros, SETMATCH and SETNMATCH for use when setting *_matches to a value that may be NOMATCH/UNSPEC/TRUE/FALSE. --- diff --git a/sudo.h b/sudo.h index 18b7736b8..2d21bccd2 100644 --- a/sudo.h +++ b/sudo.h @@ -65,12 +65,16 @@ struct sudo_user { #define FLAG_NOEXEC 0x200 /* - * Boolean values + * Pseudo-boolean values */ #undef TRUE #define TRUE 1 #undef FALSE #define FALSE 0 +#undef NOMATCH +#define NOMATCH -1 +#undef UNSPEC +#define UNSPEC -2 /* * find_path()/load_cmnd() return values