[packages/samba] - fix missing format string

baggins baggins at pld-linux.org
Sun Feb 13 18:15:34 CET 2022


commit c577d2de77ef8d063865e69f4058c505b6192a5f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Feb 13 18:15:10 2022 +0100

    - fix missing format string

 format-security.patch | 11 +++++++++++
 samba.spec            |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/samba.spec b/samba.spec
index 18f7b83..eea6c5e 100644
--- a/samba.spec
+++ b/samba.spec
@@ -68,6 +68,7 @@ Patch5:		%{name}-heimdal.patch
 Patch6:		server-role.patch
 Patch7:		%{name}-bug-9816.patch
 Patch8:		%{name}-no_libbsd.patch
+Patch9:		format-security.patch
 URL:		https://www.samba.org/
 BuildRequires:	acl-devel
 %{?with_avahi:BuildRequires:	avahi-devel}
@@ -568,6 +569,7 @@ wyeksportowania do PMCD.
 %patch6 -p1
 %patch7 -p1
 %{!?with_system_libbsd:%patch8 -p1}
+%patch9 -p1
 
 %{__sed} -i -e '1s|#!/usr/bin/env bash|#!/bin/bash|' ctdb/tools/onnode
 %{__sed} -i -e '1s|#!/usr/bin/env perl|#!/usr/bin/perl|' pidl/pidl
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..73676b1
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- samba-4.15.5/lib/util/debug.c~	2021-12-08 15:35:56.000000000 +0100
++++ samba-4.15.5/lib/util/debug.c	2022-02-13 18:13:26.956292670 +0100
+@@ -282,7 +282,7 @@
+ static void debug_lttng_log(int msg_level,
+ 			    const char *msg, const char *msg_no_nl)
+ {
+-	tracef(msg_no_nl);
++	tracef("%s", msg_no_nl);
+ }
+ #endif /* WITH_LTTNG_TRACEF */
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/samba.git/commitdiff/c577d2de77ef8d063865e69f4058c505b6192a5f



More information about the pld-cvs-commit mailing list