checkpolicy: Treat invalid characters as an error

Previously the behavior was to warn, discard the character and proceed.
Now the build will halt upon encountering an unexpected character.

Signed-off-by: Daniel Burgener <dburgener@linux.microsoft.com>
Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
Daniel Burgener 2020-03-10 10:41:33 -04:00 committed by James Carter
parent 879d222c4f
commit 42b13ba15a

View file

@ -290,7 +290,7 @@ GLBLUB { return(GLBLUB); }
"]" |
"~" |
"*" { return(yytext[0]); }
. { yywarn("unrecognized character");}
. { yyerror("unrecognized character");}
%%
int yyerror(const char *msg)
{