mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-27 17:31:33 +02:00
27 lines
568 B
Diff
27 lines
568 B
Diff
--- 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");
|