From 4fcd7e94f510b086d01d94c118af50f083bcccf4 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Thu, 9 Sep 2010 12:17:03 -0700 Subject: [PATCH] If encountered the scanner will dump unmatched text from . --- libraries/libapparmor/src/scanner.l | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/libapparmor/src/scanner.l b/libraries/libapparmor/src/scanner.l index 3657243e0..a81f2155e 100644 --- a/libraries/libapparmor/src/scanner.l +++ b/libraries/libapparmor/src/scanner.l @@ -194,6 +194,7 @@ yy_flex_debug = 0; {period} { return(TOK_PERIOD); } {open_paren} { return(TOK_OPEN_PAREN); } {close_paren} { yy_pop_state(yyscanner); return(TOK_CLOSE_PAREN); } + . { BEGIN(unknown_message); yyless(0); /* dump the rest */ } } {