[vdr-plugin-fritzbox] 01/01: Fix (d|e|i)syslog() calls to include format parameter to avoid build failures with "-Werror=format-security"

Tobias Grimm tiber-guest at moszumanska.debian.org
Mon Sep 7 21:49:02 UTC 2015


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

tiber-guest pushed a commit to branch master
in repository vdr-plugin-fritzbox.

commit 7f9dffede1a1a1461e41aa145a8ca6096d046b11
Author: etobi <git at e-tobi.net>
Date:   Mon Sep 7 21:52:40 2015 +0200

    Fix (d|e|i)syslog() calls to include format parameter to avoid build failures with "-Werror=format-security"
---
 debian/changelog                     |  7 +++++++
 debian/patches/format-security.patch | 17 +++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 25 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7494a4f..2ffa745 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+vdr-plugin-fritzbox (1.5.3-4) unstable; urgency=medium
+
+  * Fix (d|e|i)syslog() calls to include format parameter to avoid build failures
+    with "-Werror=format-security"
+
+ -- Tobias Grimm <etobi at debian.org>  Mon, 07 Sep 2015 21:52:36 +0200
+
 vdr-plugin-fritzbox (1.5.3-3) unstable; urgency=medium
 
   * Now supporting the /etc/vdr/conf.d mechanism
diff --git a/debian/patches/format-security.patch b/debian/patches/format-security.patch
new file mode 100644
index 0000000..b97527f
--- /dev/null
+++ b/debian/patches/format-security.patch
@@ -0,0 +1,17 @@
+Index: vdr-plugin-fritzbox/fritzbox.cpp
+===================================================================
+--- vdr-plugin-fritzbox.orig/fritzbox.cpp	2015-02-14 16:10:54.932142032 +0100
++++ vdr-plugin-fritzbox/fritzbox.cpp	2015-09-07 21:50:42.743417620 +0200
+@@ -49,9 +49,9 @@
+ 
+ 	logger::Log::setPrefix("fritzbox");
+ 	logger::Log::setCustomLogger(
+-		[](const std::string &message) { esyslog(message.c_str()); },
+-		[](const std::string &message) { isyslog(message.c_str()); },
+-		[](const std::string &message) { dsyslog(message.c_str()); }
++		[](const std::string &message) { esyslog("%s", message.c_str()); },
++		[](const std::string &message) { isyslog("%s", message.c_str()); },
++		[](const std::string &message) { dsyslog("%s", message.c_str()); }
+ 	);
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..96ffb92
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+format-security.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vdr-dvb/vdr-plugin-fritzbox.git



More information about the pkg-vdr-dvb-changes mailing list