]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: include leading '.' in concat subexpression location
authorPatrick McHardy <kaber@trash.net>
Mon, 22 Apr 2013 17:58:54 +0000 (19:58 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 22 Apr 2013 17:58:54 +0000 (19:58 +0200)
commit1ea565b95524e160742c5ab4807907f07bd35504
tree279cf7a308ec5f13e02ae8fb30e1732a6581c896
parent2e27ad8122fe20db802e1c7bb9d5f4ad6cd23665
parser: include leading '.' in concat subexpression location

Make error messages point to the entire subexpression.

Before:

filter output ip daddr . tcp dport . tcp dport { 192.168.0.1 . ssh . ssh . ssh}
                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^

After:

filter output ip daddr . tcp dport . tcp dport { 192.168.0.1 . ssh . ssh . ssh}
                                                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/parser.y