[nsca] Revert MAX_INPUTPLUGIN_LENGHT, it breaks backward compatibility.

Xavier Bachelot xavierb at fedoraproject.org
Thu Jan 26 22:36:49 UTC 2012


commit 60eb94547412eef3f5f2e05b0b621e5c41ea7493
Author: Xavier Bachelot <xavier at bachelot.org>
Date:   Thu Jan 26 23:35:44 2012 +0100

    Revert MAX_INPUTPLUGIN_LENGHT, it breaks backward compatibility.

 nsca-2.9-revert_max_pluginoutput_lenght.patch |   12 ++++++++++++
 nsca.spec                                     |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/nsca-2.9-revert_max_pluginoutput_lenght.patch b/nsca-2.9-revert_max_pluginoutput_lenght.patch
new file mode 100644
index 0000000..249382a
--- /dev/null
+++ b/nsca-2.9-revert_max_pluginoutput_lenght.patch
@@ -0,0 +1,12 @@
+diff -Naur nsca-2.9.orig/include/common.h nsca-2.9/include/common.h
+--- nsca-2.9.orig/include/common.h	2011-11-04 19:21:29.000000000 +0100
++++ nsca-2.9/include/common.h	2012-01-26 09:54:09.000000000 +0100
+@@ -47,7 +47,7 @@
+ 
+ #define MAX_HOSTNAME_LENGTH	64
+ #define MAX_DESCRIPTION_LENGTH	128
+-#define MAX_PLUGINOUTPUT_LENGTH	4096
++#define MAX_PLUGINOUTPUT_LENGTH	512
+ 
+ #define MAX_PASSWORD_LENGTH     512
+ 
diff --git a/nsca.spec b/nsca.spec
index 1ed9c38..885918c 100644
--- a/nsca.spec
+++ b/nsca.spec
@@ -1,7 +1,7 @@
 Summary:        Nagios Service Check Acceptor
 Name:           nsca
 Version:        2.9
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        GPLv2+
 Group:          Applications/System
 URL:            http://www.nagios.org/
@@ -11,6 +11,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Patch0:         nsca-2.9-initscript.patch
 Patch1:         nsca-2.9-confpath.patch
 Patch2:         nsca-2.9-fix_open_missing_arg.patch
+Patch3:         nsca-2.9-revert_max_pluginoutput_lenght.patch
 
 BuildRequires:  libmcrypt-devel
 Requires:       nagios
@@ -38,6 +39,7 @@ Client application for sending updates to a nsca server.
 %patch0 -p0 -b .initscript
 %patch1 -p1 -b .confpath
 %patch2 -p1 -b .open
+%patch3 -p1 -b .max_pluginoutput_lenght
 # Change defaults in the config file to match the nagios package
 sed -i -e "s|^command_file=.*|command_file=%{_localstatedir}/spool/nagios/cmd/nagios.cmd|" \
        -e "s|^alternate_dump_file=.*|alternate_dump_file=%{_localstatedir}/spool/nagios/cmd/nsca.dump|" \
@@ -101,6 +103,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Thu Jan 26 2012 Xavier Bachelot <xavier at bachelot.org> - 2.9-2
+- Revert MAX_INPUTPLUGIN_LENGHT, it breaks backward compatibility.
+
 * Mon Jan 16 2012 Xavier Bachelot <xavier at bachelot.org> - 2.9-1
 - Update to 2.9.
 - Fix initscript return code (RHBZ#620013).


More information about the scm-commits mailing list