[Swan-commit] Changes to ref refs/heads/main
Andrew Cagney
cagney at vault.libreswan.fi
Wed Feb 3 22:41:50 UTC 2021
New commits:
commit 0f2da31cea98dfdd050574d7570b07d347b933c1
Author: Andrew Cagney <cagney at gnu.org>
Date: Wed Feb 3 16:56:38 2021 -0500
libipseconf: add explicit rules for <KEY>\n, <KEY>= and <VALUE>\n et.al.
Add explicit KEY and BOOLEAN_KEY states. Add explicit per-state rules
to both eat blanks and match \n as EOL.
This will stop the lexer's default rule eating the '\n' following '=':
conn first
rightsubnet=
conn second
causing it to return:
CONN "first" KEY(rightsubnet) EQUAL CONN "second"
when it should have returned:
CONN "first" KEY(rightsubnet) EQUAL EOL CONN "second"
This also fixes libipsecconf-05-empty_option to the point where
addconn parses the config files the way parser.y intended. The next
problem is with parser.y which very deliberately allows the above
blank rightsubnet= line but should it?
commit dfbe447b47142c92c173d6dc3d63ab54d0d4b6ba
Author: Andrew Cagney <cagney at gnu.org>
Date: Wed Feb 3 15:35:27 2021 -0500
libipsecconf: move code parsing a number to parser_lex_number()
More information about the Swan-commit
mailing list