1 |
diff -up sudo-1.8.6p3/plugins/sudoers/toke.c.doublequotefix sudo-1.8.6p3/plugins/sudoers/toke.c |
2 |
--- sudo-1.8.6p3/plugins/sudoers/toke.c.doublequotefix 2014-05-19 14:28:27.536399410 +0200 |
3 |
+++ sudo-1.8.6p3/plugins/sudoers/toke.c 2014-05-19 14:29:51.084714355 +0200 |
4 |
@@ -1851,7 +1851,7 @@ YY_RULE_SETUP |
5 |
LEXTRACE("ERROR "); /* empty string */ |
6 |
LEXRETURN(ERROR); |
7 |
} |
8 |
- if (prev_state == INITIAL) { |
9 |
+ if (prev_state == INITIAL || prev_state == GOTDEFS) { |
10 |
switch (yylval.string[0]) { |
11 |
case '%': |
12 |
if (yylval.string[1] == '\0' || |
13 |
diff -up sudo-1.8.6p3/plugins/sudoers/toke.l.doublequotefix sudo-1.8.6p3/plugins/sudoers/toke.l |
14 |
--- sudo-1.8.6p3/plugins/sudoers/toke.l.doublequotefix 2014-05-19 14:28:36.932438977 +0200 |
15 |
+++ sudo-1.8.6p3/plugins/sudoers/toke.l 2014-05-19 14:29:27.769626995 +0200 |
16 |
@@ -197,7 +197,7 @@ DEFVAR [a-z_]+ |
17 |
LEXTRACE("ERROR "); /* empty string */ |
18 |
LEXRETURN(ERROR); |
19 |
} |
20 |
- if (prev_state == INITIAL) { |
21 |
+ if (prev_state == INITIAL || prev_state == GOTDEFS) { |
22 |
switch (yylval.string[0]) { |
23 |
case '%': |
24 |
if (yylval.string[1] == '\0' || |