settings: Don't allow dots in section/key names anymore
This requires config changes if filelog is used with a path that contains dots. This path must now be defined in the `path` setting of an arbitrarily named subsection of `filelog`. Without that change the whole strongswan.conf file will fail to load, which some users might not notice immediately.
This commit is contained in:
@@ -82,7 +82,9 @@ static int yylex(YYSTYPE *lvalp, parser_helper_t *ctx)
|
||||
array_t *refs;
|
||||
}
|
||||
%token <s> NAME STRING
|
||||
%token REFS ":"
|
||||
%token DOT "."
|
||||
%token COMMA ","
|
||||
%token COLON ":"
|
||||
%token NEWLINE STRING_ERROR
|
||||
|
||||
/* ...and other symbols */
|
||||
@@ -152,7 +154,7 @@ references:
|
||||
$$ = array_create(0, 0);
|
||||
array_insert($$, ARRAY_TAIL, $1);
|
||||
}
|
||||
| references ',' NAME
|
||||
| references "," NAME
|
||||
{
|
||||
array_insert($1, ARRAY_TAIL, $3);
|
||||
$$ = $1;
|
||||
|
||||
Reference in New Issue
Block a user