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