From: Jan Rękorajski Date: Sun, 13 Feb 2022 17:15:10 +0000 (+0100) Subject: - fix missing format string X-Git-Tag: auto/th/samba-4.15.5-2~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fsamba.git;a=commitdiff_plain;h=c577d2d - fix missing format string --- 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 */ + 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