Blame SOURCES/0017-scanner-Extend-asteriskstring-definition.patch

3730f4
From 34ba60c0c2b6057e8b56a77e47899bbeccd88bfd Mon Sep 17 00:00:00 2001
3730f4
From: Phil Sutter <psutter@redhat.com>
3730f4
Date: Wed, 12 Feb 2020 22:39:44 +0100
3730f4
Subject: [PATCH] scanner: Extend asteriskstring definition
3730f4
3730f4
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1763652
3730f4
Upstream Status: nftables commit 556c5a94b8067
3730f4
3730f4
commit 556c5a94b8067f33ef0a42836753dae0736b7524
3730f4
Author: Phil Sutter <phil@nwl.cc>
3730f4
Date:   Thu Feb 6 12:31:56 2020 +0100
3730f4
3730f4
    scanner: Extend asteriskstring definition
3730f4
3730f4
    Accept escaped asterisks also mid-string and as only character.
3730f4
    Especially the latter will help when translating from iptables where
3730f4
    asterisk has no special meaning.
3730f4
3730f4
    Signed-off-by: Phil Sutter <phil@nwl.cc>
3730f4
---
3730f4
 src/scanner.l | 2 +-
3730f4
 1 file changed, 1 insertion(+), 1 deletion(-)
3730f4
3730f4
diff --git a/src/scanner.l b/src/scanner.l
3730f4
index d32adf4..7daf5c1 100644
3730f4
--- a/src/scanner.l
3730f4
+++ b/src/scanner.l
3730f4
@@ -120,7 +120,7 @@ numberstring	({decstring}|{hexstring})
3730f4
 letter		[a-zA-Z]
3730f4
 string		({letter}|[_.])({letter}|{digit}|[/\-_\.])*
3730f4
 quotedstring	\"[^"]*\"
3730f4
-asteriskstring	({string}\*|{string}\\\*)
3730f4
+asteriskstring	({string}\*|{string}\\\*|\\\*|{string}\\\*{string})
3730f4
 comment		#.*$
3730f4
 slash		\/
3730f4
 
3730f4
-- 
3730f4
1.8.3.1
3730f4