]>
Commit | Line | Data |
---|---|---|
0cd87718 SZ |
1 | diff -Naur aide-0.9/src/conf_yacc.y aide-0.9-p/src/conf_yacc.y |
2 | --- aide-0.9/src/conf_yacc.y Sat Nov 23 12:05:41 2002 | |
3 | +++ aide-0.9-p/src/conf_yacc.y Sat Nov 23 12:05:55 2002 | |
4 | @@ -62,6 +62,7 @@ | |
5 | %token TEND_CONFIG | |
6 | %token TBEGIN_DB | |
7 | %token TEND_DB | |
8 | +%token TEND_DBNOMD | |
9 | %token TID | |
10 | %token <s> TSTRING | |
11 | %token '=' | |
12 | @@ -151,6 +152,9 @@ | |
13 | | TEND_DB { | |
14 | conferror("Error while reading configuration"); | |
15 | } | |
16 | + | TEND_DBNOMD { | |
17 | + conferror("Error while reading configuration"); | |
18 | + } | |
19 | | error { | |
20 | conferror("Error while reading configuration"); | |
21 | YYABORT; | |
22 | diff -Naur aide-0.9/src/db_file.c aide-0.9-p/src/db_file.c | |
23 | --- aide-0.9/src/db_file.c Thu May 30 11:42:46 2002 | |
24 | +++ aide-0.9-p/src/db_file.c Sat Nov 23 12:08:06 2002 | |
25 | @@ -462,6 +462,9 @@ | |
26 | } | |
27 | ||
28 | /* */ | |
29 | + if(gotend_db){ | |
30 | + return NULL; | |
31 | + } | |
32 | ||
33 | error(0,"Not enough parameters in db:%i. Trying to continue.\n", | |
34 | *db_lineno); | |
35 | @@ -515,6 +518,11 @@ | |
36 | break; | |
37 | } | |
38 | ||
39 | + case TEND_DBNOMD : { | |
40 | + gotend_db=1; | |
41 | + break; | |
42 | + } | |
43 | + | |
44 | case TEOF : { | |
45 | if(gotend_db){ | |
46 | return NULL; | |
47 | diff -Naur aide-0.9/src/db_lex.l aide-0.9-p/src/db_lex.l | |
48 | --- aide-0.9/src/db_lex.l Wed May 29 10:04:27 2002 | |
49 | +++ aide-0.9-p/src/db_lex.l Sat Nov 23 12:05:55 2002 | |
50 | @@ -104,6 +104,10 @@ | |
51 | return (TSTRING); | |
52 | } | |
53 | ||
54 | +^"@@end_db" { | |
55 | + return (TEND_DBNOMD); | |
56 | +} | |
57 | + | |
58 | "@@"({L}+) { | |
59 | return (TUNKNOWN); | |
60 | } |