]> git.pld-linux.org Git - packages/aide.git/commitdiff
- fix tokenizer (don't spit out errors when no db checksum is found)
authorSebastian Zagrodzki <sebek@zagrodzki.net>
Sat, 23 Nov 2002 11:14:02 +0000 (11:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aide-no_md.patch -> 1.1

aide-no_md.patch [new file with mode: 0644]

diff --git a/aide-no_md.patch b/aide-no_md.patch
new file mode 100644 (file)
index 0000000..18dbab6
--- /dev/null
@@ -0,0 +1,60 @@
+diff -Naur aide-0.9/src/conf_yacc.y aide-0.9-p/src/conf_yacc.y
+--- aide-0.9/src/conf_yacc.y   Sat Nov 23 12:05:41 2002
++++ aide-0.9-p/src/conf_yacc.y Sat Nov 23 12:05:55 2002
+@@ -62,6 +62,7 @@
+ %token TEND_CONFIG
+ %token TBEGIN_DB
+ %token TEND_DB
++%token TEND_DBNOMD
+ %token TID
+ %token <s> TSTRING
+ %token '='
+@@ -151,6 +152,9 @@
+        | TEND_DB {
+         conferror("Error while reading configuration");
+           }
++       | TEND_DBNOMD {
++        conferror("Error while reading configuration");
++          }
+        | error {
+         conferror("Error while reading configuration");
+         YYABORT;
+diff -Naur aide-0.9/src/db_file.c aide-0.9-p/src/db_file.c
+--- aide-0.9/src/db_file.c     Thu May 30 11:42:46 2002
++++ aide-0.9-p/src/db_file.c   Sat Nov 23 12:08:06 2002
+@@ -462,6 +462,9 @@
+       }
+       
+       /*  */
++      if(gotend_db){
++      return NULL;
++      }
+       error(0,"Not enough parameters in db:%i. Trying to continue.\n",
+           *db_lineno);
+@@ -515,6 +518,11 @@
+       break;
+     }
++    case TEND_DBNOMD : {
++      gotend_db=1;
++      break;
++    }
++
+     case TEOF : {
+       if(gotend_db){
+       return NULL;
+diff -Naur aide-0.9/src/db_lex.l aide-0.9-p/src/db_lex.l
+--- aide-0.9/src/db_lex.l      Wed May 29 10:04:27 2002
++++ aide-0.9-p/src/db_lex.l    Sat Nov 23 12:05:55 2002
+@@ -104,6 +104,10 @@
+   return (TSTRING);
+ }
++^"@@end_db" {
++  return (TEND_DBNOMD);
++}
++
+ "@@"({L}+) {
+   return (TUNKNOWN);
+ }
This page took 1.337569 seconds and 4 git commands to generate.