Set cmnd_matches to UNSPEC, not NOMATCH when resetting it.
} while (0)
#define pop \
- { \
+ do { \
if (top == 0) \
yyerror("matching stack underflow"); \
else \
top--; \
- }
+ } while (0)
/*
* Shortcuts for append()
cmndspec : runasspec cmndtag opcmnd {
/*
* Push the entry onto the stack if it is worth
- * saving and clear cmnd_matches for next cmnd.
+ * saving and reset cmnd_matches for next cmnd.
*
* We need to save at least one entry on
* the stack so sudoers_lookup() can tell that
pushcp;
else if (user_matches == TRUE && keepall)
pushcp;
- cmnd_matches = NOMATCH;
+ cmnd_matches = UNSPEC;
}
;