#983168 nftables: command line parser misparse/double parse (some) quoted strings, log prefix can't contain various characters

Package:
nftables
Source:
nftables
Description:
Program to control packet filtering rules by Netfilter project
Submitter:
Peter Gervai
Date:
2021-02-20 12:21:03 UTC
Severity:
normal
Tags:
#983168#5
Date:
2021-02-20 12:17:11 UTC
From:
To:
# nft add rule inet purutty hopsz ip saddr 1.2.3.4 log prefix 'foo: '
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet purutty hopsz ip saddr 1.2.3.4 log prefix foo:


Log prefix must be double-quoted since nft seem to remove quotes then reparse:

# nft add rule inet purutty hopsz ip saddr 1.2.3.4 log prefix '"foo: "'