diff --git a/debian/changelog b/debian/changelog index 3365a4b..41f1e23 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,8 @@ nagios-plugins (1.4.15-5) UNRELEASED; urgency=low Mitterer - Listing the checks of each package - Hint added, that nagios-plugins-basic needs more packages (recommands) + * Fix error in check_radius when compiling with -Werror=format-security + (hardening), thanks Thomas Guyot-Sionnesti - LP: #837085 -- Jan Wagner Wed, 18 May 2011 16:55:55 +0200 diff --git a/debian/patches/00list b/debian/patches/00list index 3828a04..aee5376 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -7,3 +7,5 @@ 12_check_snmp_1.4.15_regression.dpatch 13_check_smtp_greeting.dpatch 14_check_icmp_multiple_ips.dpatch +# 15_check_sensors_fault.dpatch +16_check_raduis_fix_format-security.dpatch diff --git a/debian/patches/16_check_raduis_fix_format-security.dpatch b/debian/patches/16_check_raduis_fix_format-security.dpatch new file mode 100644 index 0000000..7f0dcfc --- /dev/null +++ b/debian/patches/16_check_raduis_fix_format-security.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 16_check_raduis_fix_format-security.dpatch +## From 055b2570eddff9a312dc1445bb7de4a6d7c4887d Mon Sep 17 00:00:00 2001 +## From: Thomas Guyot-Sionnest +## Date: Tue, 6 Sep 2011 23:20:21 -0400 +## Subject: [PATCH] Make GCC happy +## X-Git-Url: http://nagiosplug.git.sourceforge.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commitdiff_plain;h=055b2570eddff9a312dc1445bb7de4a6d7c4887d +## +## DP: It won't trust us about msg containing no format string, and fail miserably +## when compiled with -Werror=format-security. (https://bugs.launchpad.net/bugs/837085) + +@DPATCH@ + +--- a/plugins/check_radius.c ++++ b/plugins/check_radius.c +@@ -211,7 +211,7 @@ main (int argc, char **argv) + 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); + } + +