From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1143493-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 889D4138350 for <garchives@archives.gentoo.org>; Thu, 6 Feb 2020 15:24:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99F42E0849; Thu, 6 Feb 2020 15:24:30 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 584DDE0849 for <gentoo-commits@lists.gentoo.org>; Thu, 6 Feb 2020 15:24:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E078334E821 for <gentoo-commits@lists.gentoo.org>; Thu, 6 Feb 2020 15:24:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3036710B for <gentoo-commits@lists.gentoo.org>; Thu, 6 Feb 2020 15:24:26 +0000 (UTC) From: "Mike Gilbert" <floppym@gentoo.org> 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" <floppym@gentoo.org> Message-ID: <1581002648.1f550c46e58f6d48b6072f50097e1c6d44a30485.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/, sys-apps/systemd/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/systemd/files/245-rc1-sysctl-segfault.patch sys-apps/systemd/systemd-245_rc1-r1.ebuild sys-apps/systemd/systemd-245_rc1.ebuild X-VCS-Directories: sys-apps/systemd/files/ sys-apps/systemd/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 1f550c46e58f6d48b6072f50097e1c6d44a30485 X-VCS-Branch: master Date: Thu, 6 Feb 2020 15:24:26 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3b33b95d-a182-4ab7-8a21-0d24012767fe X-Archives-Hash: 83b28ac367a621b4dcd3d1edf3976f8a commit: 1f550c46e58f6d48b6072f50097e1c6d44a30485 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Thu Feb 6 15:24:08 2020 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Thu Feb 6 15:24:08 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f550c46 sys-apps/systemd: fix segfault in systemd-sysctl Closes: https://bugs.gentoo.org/708462 Package-Manager: Portage-2.3.86_p1, Repoman-2.3.20_p43 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> .../systemd/files/245-rc1-sysctl-segfault.patch | 23 ++++++++++++++++++++++ ...md-245_rc1.ebuild => systemd-245_rc1-r1.ebuild} | 1 + 2 files changed, 24 insertions(+) diff --git a/sys-apps/systemd/files/245-rc1-sysctl-segfault.patch b/sys-apps/systemd/files/245-rc1-sysctl-segfault.patch new file mode 100644 index 00000000000..7618b2deba5 --- /dev/null +++ b/sys-apps/systemd/files/245-rc1-sysctl-segfault.patch @@ -0,0 +1,23 @@ +From db99904bc8482efe556bb010a8b203a3e60ee37f Mon Sep 17 00:00:00 2001 +From: Yu Watanabe <watanabe.yu+github@gmail.com> +Date: Thu, 6 Feb 2020 19:13:11 +0900 +Subject: [PATCH] sysctl: fix segfault + +Fixes #14801. +--- + src/sysctl/sysctl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c +index bbcf0c43235..0cdb740d218 100644 +--- a/src/sysctl/sysctl.c ++++ b/src/sysctl/sysctl.c +@@ -257,7 +257,7 @@ static int parse_file(OrderedHashmap **sysctl_options, const char *path, bool ig + + existing = ordered_hashmap_get(*sysctl_options, p); + if (existing) { +- if (streq(value, existing->value)) { ++ if (streq_ptr(value, existing->value)) { + existing->ignore_failure = existing->ignore_failure || ignore_failure; + continue; + } diff --git a/sys-apps/systemd/systemd-245_rc1.ebuild b/sys-apps/systemd/systemd-245_rc1-r1.ebuild similarity index 99% rename from sys-apps/systemd/systemd-245_rc1.ebuild rename to sys-apps/systemd/systemd-245_rc1-r1.ebuild index 7bb75c3ee62..e889210fcbd 100644 --- a/sys-apps/systemd/systemd-245_rc1.ebuild +++ b/sys-apps/systemd/systemd-245_rc1-r1.ebuild @@ -186,6 +186,7 @@ src_prepare() { # Add local patches here PATCHES+=( "${FILESDIR}"/245-rc1-network-debug.patch + "${FILESDIR}"/245-rc1-sysctl-segfault.patch ) if ! use vanilla; then