From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3C144158090 for ; Mon, 23 May 2022 18:36:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0D2D4E08D3; Mon, 23 May 2022 18:35:58 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E036EE08D3 for ; Mon, 23 May 2022 18:35:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C1B763415D5 for ; Mon, 23 May 2022 18:35:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A0CB34E for ; Mon, 23 May 2022 18:35:54 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1653330888.d988a952564a89892fd14e8e25046825bb93216f.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/files/, sys-apps/systemd/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/systemd/files/251-format-string.patch sys-apps/systemd/systemd-251.ebuild X-VCS-Directories: sys-apps/systemd/ sys-apps/systemd/files/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: d988a952564a89892fd14e8e25046825bb93216f X-VCS-Branch: master Date: Mon, 23 May 2022 18:35:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 85f1f54c-4eda-4f40-afca-43a9bc22bf9e X-Archives-Hash: bb759c131243e358d110f84b759670e9 commit: d988a952564a89892fd14e8e25046825bb93216f Author: Mike Gilbert gentoo org> AuthorDate: Mon May 23 18:34:48 2022 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Mon May 23 18:34:48 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d988a952 sys-apps/systemd: backport format string fix Closes: https://bugs.gentoo.org/847010 Signed-off-by: Mike Gilbert gentoo.org> sys-apps/systemd/files/251-format-string.patch | 25 +++++++++++++++++++++++++ sys-apps/systemd/systemd-251.ebuild | 1 + 2 files changed, 26 insertions(+) diff --git a/sys-apps/systemd/files/251-format-string.patch b/sys-apps/systemd/files/251-format-string.patch new file mode 100644 index 000000000000..f36cc5d657f3 --- /dev/null +++ b/sys-apps/systemd/files/251-format-string.patch @@ -0,0 +1,25 @@ +From 08e86b15fc22a8e9f1ee0a791dfd35b2fc25e4c4 Mon Sep 17 00:00:00 2001 +From: Daan De Meyer +Date: Sun, 22 May 2022 14:36:07 +0200 +Subject: [PATCH] coredump: Fix format string type mismatch + +Fixes #23471 +--- + src/coredump/coredump.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c +index c9747416ad3c..994d968d871b 100644 +--- a/src/coredump/coredump.c ++++ b/src/coredump/coredump.c +@@ -512,8 +512,8 @@ static int save_external_coredump( + + if (truncated) + log_struct(LOG_INFO, +- LOG_MESSAGE("Core file was truncated to %zu bytes.", max_size), +- "SIZE_LIMIT=%zu", max_size, ++ LOG_MESSAGE("Core file was truncated to %"PRIu64" bytes.", max_size), ++ "SIZE_LIMIT=%"PRIu64, max_size, + "MESSAGE_ID=" SD_MESSAGE_TRUNCATED_CORE_STR); + + r = fix_permissions(fd, tmp, fn, context, uid); diff --git a/sys-apps/systemd/systemd-251.ebuild b/sys-apps/systemd/systemd-251.ebuild index 8d12de0b47a7..697214806c4b 100644 --- a/sys-apps/systemd/systemd-251.ebuild +++ b/sys-apps/systemd/systemd-251.ebuild @@ -235,6 +235,7 @@ src_prepare() { # Add local patches here PATCHES+=( + "${FILESDIR}/251-format-string.patch" ) if ! use vanilla; then