Save entries that match a ! command on the matching stack too

This commit is contained in:
Todd C. Miller
1999-03-30 06:03:38 +00:00
parent 1b56f53a40
commit baae4d4dd9
2 changed files with 2 additions and 2 deletions

View File

@@ -268,7 +268,7 @@ cmndspeclist : cmndspec
cmndspec : { /* Push a new entry onto the stack if needed */ cmndspec : { /* Push a new entry onto the stack if needed */
if (user_matches == TRUE && host_matches == TRUE && if (user_matches == TRUE && host_matches == TRUE &&
cmnd_matches == TRUE && runas_matches == TRUE) { cmnd_matches != -1 && runas_matches == TRUE) {
push; push;
user_matches = TRUE; user_matches = TRUE;
host_matches = TRUE; host_matches = TRUE;

View File

@@ -1120,7 +1120,7 @@ case 22:
#line 269 "parse.yacc" #line 269 "parse.yacc"
{ /* Push a new entry onto the stack if needed */ { /* Push a new entry onto the stack if needed */
if (user_matches == TRUE && host_matches == TRUE && if (user_matches == TRUE && host_matches == TRUE &&
cmnd_matches == TRUE && runas_matches == TRUE) { cmnd_matches != -1 && runas_matches == TRUE) {
push; push;
user_matches = TRUE; user_matches = TRUE;
host_matches = TRUE; host_matches = TRUE;