Blame SOURCES/0431-core-fix-capability-bounding-set-parsing.patch

17b0f1
From 13b70c13553c94c444f149bd086bd3e8d9cc39b6 Mon Sep 17 00:00:00 2001
17b0f1
From: Evgeny Vereshchagin <evvers@ya.ru>
17b0f1
Date: Thu, 29 Oct 2015 14:13:04 +0300
17b0f1
Subject: [PATCH] core: fix capability bounding set parsing
17b0f1
17b0f1
bug: CapabilityBoundingSet= doesn't reset all caps
17b0f1
17b0f1
Cherry-picked from: 661b37b
17b0f1
Resolves: #1409586
17b0f1
---
17b0f1
 src/core/load-fragment.c | 2 +-
17b0f1
 1 file changed, 1 insertion(+), 1 deletion(-)
17b0f1
17b0f1
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
17b0f1
index 90d42b002f..7056419715 100644
17b0f1
--- a/src/core/load-fragment.c
17b0f1
+++ b/src/core/load-fragment.c
17b0f1
@@ -1069,7 +1069,7 @@ int config_parse_bounding_set(const char *unit,
17b0f1
                            "Trailing garbage, ignoring.");
17b0f1
 
17b0f1
         capability_bounding_set = invert ? ~sum : sum;
17b0f1
-        if (*capability_bounding_set_drop)
17b0f1
+        if (*capability_bounding_set_drop && capability_bounding_set)
17b0f1
                 *capability_bounding_set_drop = ~(~*capability_bounding_set_drop | capability_bounding_set);
17b0f1
         else
17b0f1
                 *capability_bounding_set_drop = ~capability_bounding_set;