From 85c5f176c6a8c3a1ea097f4c4f8a454507691395 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 19 Sep 2017 16:27:04 +0300 Subject: monitoring-plugins: 2.1.2 -> 2.2 Some more features enabled. --- .../pkgs/monitoringPlugins/test-str-format.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/pkgs/monitoringPlugins/test-str-format.patch (limited to 'modules/pkgs/monitoringPlugins/test-str-format.patch') diff --git a/modules/pkgs/monitoringPlugins/test-str-format.patch b/modules/pkgs/monitoringPlugins/test-str-format.patch new file mode 100644 index 0000000..3311db7 --- /dev/null +++ b/modules/pkgs/monitoringPlugins/test-str-format.patch @@ -0,0 +1,26 @@ +Description; fix warning/error + error: format not a string literal and no format arguments + [-Werror=format-security] +--- monitoring-plugins-2.2.orig/lib/tests/test_utils.c ++++ monitoring-plugins-2.2/lib/tests/test_utils.c +@@ -489,16 +489,16 @@ main (int argc, char **argv) + int tlen = strlen(testname); + + strcpy(testname+tlen, states[i]); +- ok(i==mp_translate_state(states[i]), testname); ++ ok(i==mp_translate_state(states[i]), "%s", testname); + + strcpy(testname+tlen, statelower); +- ok(i==mp_translate_state(statelower), testname); ++ ok(i==mp_translate_state(statelower), "%s", testname); + + strcpy(testname+tlen, stateupper); +- ok(i==mp_translate_state(stateupper), testname); ++ ok(i==mp_translate_state(stateupper), "%s", testname); + + strcpy(testname+tlen, statenum); +- ok(i==mp_translate_state(statenum), testname); ++ ok(i==mp_translate_state(statenum), "%s", testname); + } + ok(ERROR==mp_translate_state("warningfewgw"), "Translate state string with garbage"); + ok(ERROR==mp_translate_state("00"), "Translate state string: bad numeric string 1"); -- cgit v1.2.3