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.
This commit is contained in:
6
sudo.h
6
sudo.h
@@ -65,12 +65,16 @@ struct sudo_user {
|
|||||||
#define FLAG_NOEXEC 0x200
|
#define FLAG_NOEXEC 0x200
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Boolean values
|
* Pseudo-boolean values
|
||||||
*/
|
*/
|
||||||
#undef TRUE
|
#undef TRUE
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#undef FALSE
|
#undef FALSE
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
#undef NOMATCH
|
||||||
|
#define NOMATCH -1
|
||||||
|
#undef UNSPEC
|
||||||
|
#define UNSPEC -2
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* find_path()/load_cmnd() return values
|
* find_path()/load_cmnd() return values
|
||||||
|
Reference in New Issue
Block a user