aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rmilter/config_dir.patch
blob: 479cd327cecb81585e662d489f79007bc566e05f (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
--- old/include/cfg_file.h
+++ new/include/cfg_file.h
@@ -43,6 +43,12 @@
 #include <dkim.h>
 #endif
 
+#ifndef RMILTER_CONFDIR
+#define RMILTER_CONFDIR "/etc/rmilter"
+#endif
+
+#define FIXED_CONFIG_FILE RMILTER_CONFDIR "/rmilter.conf"
+
 #define COND_CONNECT_FLAG 0x1
 #define COND_HELO_FLAG 0x2
 #define COND_ENVFROM_FLAG 0x4
--- old/src/main.c
+++ new/src/main.c
@@ -208,7 +208,7 @@
 	init_defaults (cfg);
 
 	if (cfg_file == NULL) {
-		cfg_file = strdup ("/usr/local/etc/rmilter.conf");
+		cfg_file = strdup (FIXED_CONFIG_FILE);
 	}
 
 	f = fopen (cfg_file, "r");