From c577d2de77ef8d063865e69f4058c505b6192a5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 13 Feb 2022 18:15:10 +0100 Subject: [PATCH] - fix missing format string --- format-security.patch | 11 +++++++++++ samba.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 format-security.patch 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 -- 2.43.0