]> granicus.if.org Git - sudo/commitdiff
Back out cfa26b99228f, it was already fixed differently.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 1 Jun 2016 18:38:53 +0000 (12:38 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 1 Jun 2016 18:38:53 +0000 (12:38 -0600)
Caught by regress checks.

plugins/sudoers/toke.c
plugins/sudoers/toke.l

index 7b9ff9e70896c264dcc3361576cceb6087fe46aa..4cd0393e4e63717fa50a2f95137faec87155fb64 100644 (file)
@@ -2385,7 +2385,7 @@ YY_RULE_SETUP
                                LEXTRACE("ERROR "); /* empty string */
                                LEXRETURN(ERROR);
                            }
-                           if (prev_state == INITIAL || prev_state == GOTDEFS) {
+                           if (prev_state == INITIAL) {
                                switch (sudoerslval.string[0]) {
                                case '%':
                                    if (sudoerslval.string[1] == '\0' ||
index 4aac66a4e9d3f94e8ebf4e061217227d8665e2cb..ca910f245161df5cbe964831134c4159eb3ba85a 100644 (file)
@@ -185,7 +185,7 @@ DEFVAR                      [a-z_]+
                                LEXTRACE("ERROR "); /* empty string */
                                LEXRETURN(ERROR);
                            }
-                           if (prev_state == INITIAL || prev_state == GOTDEFS) {
+                           if (prev_state == INITIAL) {
                                switch (sudoerslval.string[0]) {
                                case '%':
                                    if (sudoerslval.string[1] == '\0' ||