dovecot-2.0: tcpwrap: Added allow/deny severity to fix compiling...

dovecot at dovecot.org dovecot at dovecot.org
Tue Mar 16 17:13:52 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/0d17bb09c358
changeset: 10920:0d17bb09c358
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Mar 16 17:13:50 2010 +0200
description:
tcpwrap: Added allow/deny severity to fix compiling on some systems.
Patch by Tomi Vainio

diffstat:

 src/util/tcpwrap.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r 05e93cd2cb86 -r 0d17bb09c358 src/util/tcpwrap.c
--- a/src/util/tcpwrap.c	Tue Mar 16 16:20:28 2010 +0200
+++ b/src/util/tcpwrap.c	Tue Mar 16 17:13:50 2010 +0200
@@ -9,6 +9,7 @@
 
 #include <stdlib.h>
 #include <unistd.h>
+#include <syslog.h>
 #include <tcpd.h>
 
 struct tcpwrap_client {
@@ -19,6 +20,10 @@
 
 #define INPUT_TIMEOUT_MSECS (1000*10)
 
+/* for tcpwrap library */
+int allow_severity = LOG_INFO;
+int deny_severity = LOG_WARNING;
+
 static struct tcpwrap_client *tcpwrap_client = NULL;
 
 static void tcpwrap_client_destroy(struct tcpwrap_client **client);


More information about the dovecot-cvs mailing list