From baae4d4dd9541829b46e5132690127dea8652d08 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 30 Mar 1999 06:03:38 +0000 Subject: [PATCH] Save entries that match a ! command on the matching stack too --- parse.yacc | 2 +- sudo.tab.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/parse.yacc b/parse.yacc index 1d815a622..e38e29d03 100644 --- a/parse.yacc +++ b/parse.yacc @@ -268,7 +268,7 @@ cmndspeclist : cmndspec cmndspec : { /* Push a new entry onto the stack if needed */ if (user_matches == TRUE && host_matches == TRUE && - cmnd_matches == TRUE && runas_matches == TRUE) { + cmnd_matches != -1 && runas_matches == TRUE) { push; user_matches = TRUE; host_matches = TRUE; diff --git a/sudo.tab.c b/sudo.tab.c index 0b69ccf36..17532c91e 100644 --- a/sudo.tab.c +++ b/sudo.tab.c @@ -1120,7 +1120,7 @@ case 22: #line 269 "parse.yacc" { /* Push a new entry onto the stack if needed */ if (user_matches == TRUE && host_matches == TRUE && - cmnd_matches == TRUE && runas_matches == TRUE) { + cmnd_matches != -1 && runas_matches == TRUE) { push; user_matches = TRUE; host_matches = TRUE; -- 2.50.0