Blame SOURCES/0003-src-augrun.c-nexttoken-add-more-escape-characters.patch

78c0ed
From 5218c2997b7b77752511ebc61ffa743fd2d8fcbf Mon Sep 17 00:00:00 2001
98d1c2
From: Pino Toscano <ptoscano@redhat.com>
98d1c2
Date: Fri, 17 May 2019 13:47:20 +0200
78c0ed
Subject: [PATCH 3/8] * src/augrun.c (nexttoken): add more escape characters
98d1c2
98d1c2
Synchonize the list of "pass-through" characters with the set in the
98d1c2
'name_follow' variable in pathx.c: as pathx_escape_name() escapes them,
98d1c2
make sure that aug_srun() accepts them as arguments.
98d1c2
---
98d1c2
 src/augrun.c | 10 +++++++++-
98d1c2
 1 file changed, 9 insertions(+), 1 deletion(-)
98d1c2
98d1c2
diff --git a/src/augrun.c b/src/augrun.c
98d1c2
index 07f865a9..fd710c5f 100644
98d1c2
--- a/src/augrun.c
98d1c2
+++ b/src/augrun.c
98d1c2
@@ -133,8 +133,16 @@ static char *nexttoken(struct command *cmd, char **line, bool path) {
98d1c2
         copy = true;
98d1c2
         if (*s == '\\') {
98d1c2
             switch (*(s+1)) {
98d1c2
+                case ']':
98d1c2
                 case '[':
98d1c2
-                case ']':  /* pass both literally */
98d1c2
+                case '|':
98d1c2
+                case '/':
98d1c2
+                case '=':
98d1c2
+                case '(':
98d1c2
+                case ')':
98d1c2
+                case '!':
98d1c2
+                case ',':  /* pass them literally;
98d1c2
+                            * see 'name_follow' in pathx.c */
98d1c2
                     nescaped = 2;
98d1c2
                     break;
98d1c2
                 case 't':  /* insert tab */
98d1c2
-- 
78c0ed
2.31.1
98d1c2