From 857fdbc6081a80e45b391ebce70539e5f900020f Mon Sep 17 00:00:00 2001
From: David Schroeder <schrdave@amazon.com>
Date: Wed, 12 Apr 2023 16:48:21 -0700
Subject: [PATCH] pid1: fix coredump_filter setting

Correct what appears to be a copy/paste error in config_parse_exec_coredump_filter that is preventing the coredump_filter setting from working correctly.

(cherry picked from commit 9c669abb7106ae340ea47e7747d3bd054fbacdc5)
(cherry picked from commit 91953109ecd0956775b5bef442cd567917b11050)
(cherry picked from commit be49fcd07b3fa6db96dc8ff237f4bad959350b6c)

Conflict:NA
Reference:https://github.com/systemd/systemd-stable/commit/857fdbc6081a80e45b391ebce70539e5f900020f
---
 src/core/load-fragment.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index 8a14cd569c..478026e3ae 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -780,7 +780,7 @@ int config_parse_exec_coredump_filter(
         }
 
         c->coredump_filter |= f;
-        c->oom_score_adjust_set = true;
+        c->coredump_filter_set = true;
         return 0;
 }
 
-- 
2.33.0

