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

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