]> granicus.if.org Git - sudo/commitdiff
Save entries that match a ! command on the matching stack too
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Mar 1999 06:03:38 +0000 (06:03 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Mar 1999 06:03:38 +0000 (06:03 +0000)
parse.yacc
sudo.tab.c

index 1d815a6226c369f49f52ed4983b7a97d9b5ff5d6..e38e29d034fde7308193d18804d22e5fdcd308e3 100644 (file)
@@ -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;
index 0b69ccf36371c1d41925cd5665d98185c4b24566..17532c91eb6b7a3436b63deaef0eea41e3e438f3 100644 (file)
@@ -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;