From: Todd C. Miller Date: Tue, 30 Mar 1999 06:03:38 +0000 (+0000) Subject: Save entries that match a ! command on the matching stack too X-Git-Tag: SUDO_1_5_9~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baae4d4dd9541829b46e5132690127dea8652d08;p=sudo Save entries that match a ! command on the matching stack too --- 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;