From fa6afc211fc3518b29ff2a9277bfd7437387d572 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Jan 06 2021 20:10:52 +0000 Subject: Apply patch 0003-src-augrun.c-nexttoken-add-more-escape-characters.patch patch_name: 0003-src-augrun.c-nexttoken-add-more-escape-characters.patch present_in_specfile: true location_in_specfile: 3 --- diff --git a/src/augrun.c b/src/augrun.c index 07f865a..fd710c5 100644 --- a/src/augrun.c +++ b/src/augrun.c @@ -133,8 +133,16 @@ static char *nexttoken(struct command *cmd, char **line, bool path) { copy = true; if (*s == '\\') { switch (*(s+1)) { + case ']': case '[': - case ']': /* pass both literally */ + case '|': + case '/': + case '=': + case '(': + case ')': + case '!': + case ',': /* pass them literally; + * see 'name_follow' in pathx.c */ nescaped = 2; break; case 't': /* insert tab */