[Pkg-nagios-changes] [pkg-monitoring-plugins] 02/09: Add patches/16_check_smtp_quit from upstream master branch

Jan Wagner waja at moszumanska.debian.org
Fri Oct 16 13:25:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to branch master
in repository pkg-monitoring-plugins.

commit 0c7f9bf26f00463b752fd98977b6df7abc72ce74
Author: Jan Wagner <waja at cyconet.org>
Date:   Fri Oct 9 11:10:46 2015 +0200

    Add patches/16_check_smtp_quit from upstream master branch
---
 debian/patches/16_check_smtp_quit | 31 +++++++++++++++++++++++++++++++
 debian/patches/series             |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/16_check_smtp_quit b/debian/patches/16_check_smtp_quit
new file mode 100644
index 0000000..729a0a4
--- /dev/null
+++ b/debian/patches/16_check_smtp_quit
@@ -0,0 +1,31 @@
+From b317aaf32a8a054f0274aef9137353bffef7a80c Mon Sep 17 00:00:00 2001
+From: Holger Weiss <holger at zedat.fu-berlin.de>
+Date: Tue, 6 Oct 2015 23:21:17 +0200
+Subject: [PATCH] check_smtp: QUIT SMTP connection when "-D" is used
+
+Don't forget to issue an SMTP QUIT command when the -D/--certificate
+option is specified.  This avoids undesired MTA log messages.
+---
+ plugins/check_smtp.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
+index 56040ff..753ea3e 100644
+--- a/plugins/check_smtp.c
++++ b/plugins/check_smtp.c
+@@ -276,6 +276,7 @@ main (int argc, char **argv)
+ #  ifdef USE_OPENSSL
+ 		  if ( check_cert ) {
+                     result = np_net_ssl_check_cert(days_till_exp_warn, days_till_exp_crit);
++		    smtp_quit();
+ 		    my_close();
+ 		    return result;
+ 		  }
+@@ -607,6 +608,7 @@ process_arguments (int argc, char **argv)
+                             days_till_exp_warn = atoi (optarg);
+                         }
+ 			check_cert = TRUE;
++			ignore_send_quit_failure = TRUE;
+ #else
+ 			usage (_("SSL support not available - install OpenSSL and recompile"));
+ #endif
diff --git a/debian/patches/series b/debian/patches/series
index ffb045a..6a102d5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@
 13_check_snmp_timeout
 14_sslutils_superfluous_parenthesis
 15_check_smtp_expect
+16_check_smtp_quit

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-monitoring-plugins.git



More information about the Pkg-nagios-changes mailing list