Blame SOURCES/sudo-1.8.6p3-doublequotefix.patch

110381
From 1b16310c7ec5ba23fbe066c7d000016e534b4448 Mon Sep 17 00:00:00 2001
110381
From: Tomas Sykora <tosykora@redhat.com>
110381
Date: Tue, 16 Aug 2016 09:54:06 +0200
110381
Subject: [PATCH] Double quotes are not accepted in sudoers
110381
110381
Regression in sudo 1.8.6p3-7 package, double quotes are not accepted in sudoers
110381
110381
Rebased from:
110381
Patch25: sudo-1.8.6p3-doublequotefix.patch
110381
110381
Resolves:
110381
rhbz#1092499
110381
---
110381
 plugins/sudoers/toke.c | 2 +-
110381
 plugins/sudoers/toke.l | 2 +-
110381
 2 files changed, 2 insertions(+), 2 deletions(-)
110381
110381
diff --git a/plugins/sudoers/toke.c b/plugins/sudoers/toke.c
110381
index e5b4d97..3b510bb 100644
110381
--- a/plugins/sudoers/toke.c
110381
+++ b/plugins/sudoers/toke.c
110381
@@ -2385,7 +2385,7 @@ YY_RULE_SETUP
110381
 				LEXTRACE("ERROR "); /* empty string */
110381
 				LEXRETURN(ERROR);
110381
 			    }
110381
-			    if (prev_state == INITIAL) {
110381
+			    if (prev_state == INITIAL || prev_state == GOTDEFS) {
110381
 				switch (sudoerslval.string[0]) {
110381
 				case '%':
110381
 				    if (sudoerslval.string[1] == '\0' ||
110381
diff --git a/plugins/sudoers/toke.l b/plugins/sudoers/toke.l
110381
index b63edd0..82724aa 100644
110381
--- a/plugins/sudoers/toke.l
110381
+++ b/plugins/sudoers/toke.l
110381
@@ -185,7 +185,7 @@ DEFVAR			[a-z_]+
110381
 				LEXTRACE("ERROR "); /* empty string */
110381
 				LEXRETURN(ERROR);
110381
 			    }
110381
-			    if (prev_state == INITIAL) {
110381
+			    if (prev_state == INITIAL || prev_state == GOTDEFS) {
110381
 				switch (sudoerslval.string[0]) {
110381
 				case '%':
110381
 				    if (sudoerslval.string[1] == '\0' ||
110381
-- 
110381
2.7.4
110381