[Pkg-nagios-changes] [pkg-nrpe] 07/08: Add patch to fix FTBFS with -Werror=format-security.

Bas Couwenberg sebastic at debian.org
Wed Apr 19 17:51:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch experimental
in repository pkg-nrpe.

commit 628d8bb16092e0a16c6a01cd9781428e746d48e1
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Apr 19 19:38:57 2017 +0200

    Add patch to fix FTBFS with -Werror=format-security.
---
 debian/changelog                     |  1 +
 debian/patches/format-security.patch | 16 ++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 18 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 08495dd..254ce56 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ nagios-nrpe (3.1.0-1) UNRELEASED; urgency=medium
     Refresh remaining patches.
   * Update build dependency for OpenSSL 1.1.0.
     (closes: #859223)
+  * Add patch to fix FTBFS with -Werror=format-security.
 
  -- Bas Couwenberg <sebastic at debian.org>  Wed, 19 Apr 2017 18:53:10 +0200
 
diff --git a/debian/patches/format-security.patch b/debian/patches/format-security.patch
new file mode 100644
index 0000000..ed778ae
--- /dev/null
+++ b/debian/patches/format-security.patch
@@ -0,0 +1,16 @@
+Description: Fix build failure with -Werror=format-security.
+ error: format not a string literal and no format arguments [-Werror=format-security]
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/NagiosEnterprises/nrpe/pull/114
+
+--- a/src/utils.c
++++ b/src/utils.c
+@@ -527,7 +527,7 @@ void logit(int priority, const char *for
+ 			fflush(log_fp);
+ 
+ 		} else
+-			syslog(priority, buffer);
++			syslog(priority, "%s", buffer);
+ 
+ 		free(buffer);
+ 	}
diff --git a/debian/patches/series b/debian/patches/series
index 15e2844..ba4b8b5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 02_nrpe.cfg_local-include_support_nrpe.d.patch
 07_warn_ssloption.patch
 11_reproducible_dh.h.patch
+format-security.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nrpe.git



More information about the Pkg-nagios-changes mailing list