[packages/nagios-plugins] format string usage fix in check_radius.c

jajcus jajcus at pld-linux.org
Fri Nov 23 20:01:30 CET 2012


commit 911011784acffbc482751925bd35eccf5e0fee1e
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Fri Nov 23 19:51:42 2012 +0100

    format string usage fix in check_radius.c

 nagios-plugins-format_string.patch | 11 +++++++++++
 nagios-plugins.spec                |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/nagios-plugins.spec b/nagios-plugins.spec
index 24e9f62..c912525 100644
--- a/nagios-plugins.spec
+++ b/nagios-plugins.spec
@@ -44,6 +44,7 @@ Patch26:	%{name}-check_snmp_disk_monitor-opts.patch
 Patch27:	%{name}-ping.patch
 Patch28:	check_rbl.patch
 Patch29:	%{name}-gets.patch
+Patch30:	%{name}-format_string.patch
 URL:		http://www.nagiosplugins.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -515,6 +516,7 @@ mv nagios-plugins-config-*/* .
 %patch27 -p1
 %patch28 -p1
 %patch29 -p1
+%patch30 -p1
 
 # bring contribs into shape...
 cd contrib
diff --git a/nagios-plugins-format_string.patch b/nagios-plugins-format_string.patch
new file mode 100644
index 0000000..93cffce
--- /dev/null
+++ b/nagios-plugins-format_string.patch
@@ -0,0 +1,11 @@
+--- nagios-plugins-1.4.15.orig/plugins/check_radius.c	2012-11-23 19:30:28.000000000 +0100
++++ nagios-plugins-1.4.15/plugins/check_radius.c	2012-11-23 19:45:33.357160263 +0100
+@@ -219,7 +219,7 @@
+ 	if (result == OK_RC)
+ 		die (STATE_OK, _("Auth OK"));
+ 	(void)snprintf(msg, sizeof(msg), _("Unexpected result code %d"), result);
+-	die (STATE_UNKNOWN, msg);
++	die (STATE_UNKNOWN, "%s", msg);
+ }
+ 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugins.git/commitdiff/8cce130d438294461c258a021456ad651435ef9d



More information about the pld-cvs-commit mailing list