summaryrefslogtreecommitdiff
path: root/mail/dnsbl-milter/patches/patch-src_tokenizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mail/dnsbl-milter/patches/patch-src_tokenizer.cpp')
-rw-r--r--mail/dnsbl-milter/patches/patch-src_tokenizer.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/mail/dnsbl-milter/patches/patch-src_tokenizer.cpp b/mail/dnsbl-milter/patches/patch-src_tokenizer.cpp
new file mode 100644
index 00000000000..76b1d232428
--- /dev/null
+++ b/mail/dnsbl-milter/patches/patch-src_tokenizer.cpp
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_tokenizer.cpp,v 1.1 2014/05/13 15:31:40 sborrill Exp $
+
+Don't force configuration files to be relative to cwd
+
+--- src/tokenizer.cpp.orig 2014-02-05 15:55:12.000000000 +0000
++++ src/tokenizer.cpp 2014-05-13 16:05:49.000000000 +0100
+@@ -346,7 +346,13 @@
+ return false;
+ }
+ ifstream *is = new ifstream;
+- is->open(fn);
++ if (fn[0] != '/') {
++ string fullpath("@CONFDIR@");
++ fullpath += "/";
++ fullpath += fn;
++ is->open(fullpath.c_str());
++ } else
++ is->open(fn);
+ if (is->fail()) {
+ char buf[maxlen];
+ snprintf(buf, sizeof(buf), "include file %s not found", fn);