[Debian-ha-commits] [sbd] 01/01: Provide a patch to fix format-security build error.

Adrian Vondendriesch discostu-guest at moszumanska.debian.org
Fri Jul 1 12:03:25 UTC 2016


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

discostu-guest pushed a commit to branch master
in repository sbd.

commit f3761ed76069a8b483a7927ff30ec1fb79fcd166
Author: Adrian Vondendriesch <adrian.vondendriesch at credativ.de>
Date:   Fri Jul 1 13:49:18 2016 +0200

    Provide a  patch to fix format-security build error.
---
 debian/changelog                            |  7 +++++++
 debian/patches/cl_log-format-security.patch | 13 +++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 99ea3a9..2aca73c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+sbd (1.2.0-109-gc511b06-2) unstable; urgency=medium
+
+  * patch: fix compiling failure regarding format-security.
+    (Closes: 828163)
+
+ -- Adrian Vondendriesch <adrian.vondendriesch at credativ.de>  Fri, 01 Jul 2016 13:45:39 +0200
+
 sbd (1.2.0-109-gc511b06-1) unstable; urgency=medium
 
   * Initial release
diff --git a/debian/patches/cl_log-format-security.patch b/debian/patches/cl_log-format-security.patch
new file mode 100644
index 0000000..745c999
--- /dev/null
+++ b/debian/patches/cl_log-format-security.patch
@@ -0,0 +1,13 @@
+diff --git a/src/sbd-common.c b/src/sbd-common.c
+index b24f483..55e636b 100644
+--- a/src/sbd-common.c
++++ b/src/sbd-common.c
+@@ -687,7 +687,7 @@ set_servant_health(enum pcmk_health state, int level, char const *format, ...)
+         len = vasprintf (&string, format, ap);
+ 
+         if(len > 0) {
+-            cl_log(level, string);
++            cl_log(level, "%s", string);
+         }
+         
+         va_end(ap);
diff --git a/debian/patches/series b/debian/patches/series
index 1a27488..2d174c3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 sbd.service.in-kill-path
 sbd-service_sysconfig-vs-default.patch
+cl_log-format-security.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/sbd.git



More information about the Debian-HA-Commits mailing list