summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ad5dcc)
raw | patch | inline | side by side (parent: 4ad5dcc)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 6 Mar 2007 22:17:04 +0000 (22:17 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 6 Mar 2007 22:17:04 +0000 (22:17 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1630 f882894a-f735-0410-b71e-b25c423dba1c
NEWS | patch | blob | history | |
THANKS.in | patch | blob | history | |
plugins/check_smtp.c | patch | blob | history |
index 184d4ec2610f45b4bb5f16f3f4498badb960a2bb..ee0ac0e47dcb89330c09c3063efaab5e3a78d747 100644 (file)
--- a/NEWS
+++ b/NEWS
1.4.7 ??
check_procs uses /usr/ucb/ps if available - fixes pst3 problems on Solaris
Fixed MKINSTALLDIRS problem in po/
+ Fixed broken HELO in check_smtp
Root plugins installed with world executable
./configure now detects if possible to compile check_mysql
check_sybase from contrib now maintained in NagiosExchange
diff --git a/THANKS.in b/THANKS.in
index 1022646817cc56434bf4f757582f222d59b76f8b..98b86795b9029166cf3f0d8b9fc29869d360c687 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
Nobuhiro Ban
Ville Mattila
Lars Stavholm
+Enrico Scholz
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index a7ba45a1c82ac4386bdc07f70376d55171599006..6987e1722d5a267bebec460e05cd47924a4b6d49 100644 (file)
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
- /* initialize the HELO command with the localhostname */
+ /* If localhostname not set on command line, use gethostname to set */
if(! localhostname){
localhostname = malloc (HOST_MAX_BYTES);
if(!localhostname){
printf(_("gethostname() failed!\n"));
return STATE_CRITICAL;
}
- } else {
- helocmd = localhostname;
}
if(use_ehlo)
- asprintf (&helocmd, "%s%s%s", SMTP_EHLO, helocmd, "\r\n");
+ asprintf (&helocmd, "%s%s%s", SMTP_EHLO, localhostname, "\r\n");
else
- asprintf (&helocmd, "%s%s%s", SMTP_HELO, helocmd, "\r\n");
+ asprintf (&helocmd, "%s%s%s", SMTP_HELO, localhostname, "\r\n");
if (verbose)
printf("HELOCMD: %s", helocmd);