]> git.proxmox.com Git - mirror_iproute2.git/commit
tc/lexer: let quotes actually start strings
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 22 Jan 2018 10:53:46 +0000 (11:53 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 24 Jan 2018 16:49:10 +0000 (08:49 -0800)
commit7ac29190dbbc03ee2e60406ba8c584ac3c18c6c9
tree973e44192d3a568dacfe57ae024b9abc8fc5b4e2
parent7a14358b16992d4923464ca43056d68bf6a496b8
tc/lexer: let quotes actually start strings

The lexer will go with the longest match, so previously
the starting double quotes of a string would be swallowed by
the [^ \t\r\n()]+ pattern leaving the user no way to
actually use strings with escape sequences.
Fix this by not allowing this case to start with double
quotes.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
tc/emp_ematch.l