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

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