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

98d1c2
From d37c8aabc29c3989d5f961d8b742b246a5f64cdf Mon Sep 17 00:00:00 2001
98d1c2
From: Pino Toscano <ptoscano@redhat.com>
98d1c2
Date: Fri, 17 May 2019 13:47:20 +0200
98d1c2
Subject: [PATCH] * 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
-- 
98d1c2
2.24.1
98d1c2