summaryrefslogtreecommitdiff
blob: 4664df190c86d0b9f456a00ab043bc47aec5b5a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
diff -Naur aide-0.10/src/commandconf.c aide-0.10.fixed/src/commandconf.c
--- aide-0.10/src/commandconf.c	2003-11-04 09:39:48.000000000 -0600
+++ aide-0.10.fixed/src/commandconf.c	2004-09-11 09:37:44.143790160 -0500
@@ -29,7 +29,7 @@
 #include "aide.h"
 #include "conf_lex.h"
 #include "conf_yacc.h"
-#include "db.h"
+#include "../include/db.h"
 #include "db_config.h"
 #include "gen_list.h"
 #include "symboltable.h"
@@ -224,7 +224,7 @@
     }
     /* FIXME This does not handle the case that @@end_config is on 
        buffer boundary. */
-    if((tmp=strnstr(buf,"@@end_config",retval))!=NULL){
+    if((conf->confmd != MHASH_FAILED) && ((tmp=strnstr(buf,"@@end_config",retval))!=NULL)){
       /* We have end of config don't feed the last line to mhash */
       mhash(conf->confmd,(void*)buf,tmp-buf);
     } else {
diff -Naur aide-0.10/src/compare_db.c aide-0.10.fixed/src/compare_db.c
--- aide-0.10/src/compare_db.c	2003-11-04 09:39:48.000000000 -0600
+++ aide-0.10.fixed/src/compare_db.c	2004-09-11 09:31:44.222506512 -0500
@@ -30,7 +30,7 @@
 #include "gnu_regex.h"
 #include "gen_list.h"
 #include "list.h"
-#include "db.h"
+#include "../include/db.h"
 #include "util.h"
 #include "commandconf.h"
 #include "gen_list.h"
diff -Naur aide-0.10/src/conf_yacc.y aide-0.10.fixed/src/conf_yacc.y
--- aide-0.10/src/conf_yacc.y	2003-08-18 08:03:22.000000000 -0500
+++ aide-0.10.fixed/src/conf_yacc.y	2004-09-11 09:31:44.223506360 -0500
@@ -25,7 +25,7 @@
 #include <string.h>
 #include "list.h"
 #include "gen_list.h"
-#include "db.h"
+#include "../include/db.h"
 #include "db_config.h"
 #include "symboltable.h"
 #include "commandconf.h"
diff -Naur aide-0.10/src/db.c aide-0.10.fixed/src/db.c
--- aide-0.10/src/db.c	2003-11-04 09:13:06.000000000 -0600
+++ aide-0.10.fixed/src/db.c	2004-09-11 09:31:44.224506208 -0500
@@ -22,7 +22,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
-#include "db.h"
+#include "../include/db.h"
 #include "db_file.h"
 #include "db_disk.h"
 
diff -Naur aide-0.10/src/db_sql.c aide-0.10.fixed/src/db_sql.c
--- aide-0.10/src/db_sql.c	2003-01-16 04:37:34.000000000 -0600
+++ aide-0.10.fixed/src/db_sql.c	2004-09-11 09:31:44.225506056 -0500
@@ -31,7 +31,7 @@
 #include <string.h>
 #include <gcrypt.h>
 #include "base64.h"
-#include "db.h"
+#include "../include/db.h"
 
 #include "db_sql.h"
 #include "db_config.h"
diff -Naur aide-0.10/src/gen_list.c aide-0.10.fixed/src/gen_list.c
--- aide-0.10/src/gen_list.c	2003-11-04 09:39:48.000000000 -0600
+++ aide-0.10.fixed/src/gen_list.c	2004-09-11 09:31:44.226505904 -0500
@@ -38,7 +38,7 @@
 #include "list.h"
 #include "gen_list.h"
 #include "seltree.h"
-#include "db.h"
+#include "../include/db.h"
 #include "db_config.h"
 #include "compare_db.h"
 #include "commandconf.h"