richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
7e7c9f
From b12e40d3e16b998542faef3fe916d5605b3fe0cb Mon Sep 17 00:00:00 2001
7e7c9f
From: Lennart Poettering <lennart@poettering.net>
7e7c9f
Date: Thu, 29 Nov 2018 16:40:13 +0100
7e7c9f
Subject: [PATCH] core: clarify that the CollectMode bus property is constant
7e7c9f
7e7c9f
it's configured from unit files only, and hence is constant.
7e7c9f
7e7c9f
(cherry-picked from commit 641e0d7a1bf4e24f5bf5f99a2d74a97635335c8e)
7e7c9f
7e7c9f
Related: #1817576
7e7c9f
---
7e7c9f
 src/core/dbus-unit.c | 2 +-
7e7c9f
 1 file changed, 1 insertion(+), 1 deletion(-)
7e7c9f
7e7c9f
diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c
7e7c9f
index ea6ac6767f..8febdfd021 100644
7e7c9f
--- a/src/core/dbus-unit.c
7e7c9f
+++ b/src/core/dbus-unit.c
7e7c9f
@@ -606,7 +606,7 @@ const sd_bus_vtable bus_unit_vtable[] = {
7e7c9f
         SD_BUS_PROPERTY("Asserts", "a(sbbsi)", property_get_conditions, offsetof(Unit, asserts), 0),
7e7c9f
         SD_BUS_PROPERTY("LoadError", "(ss)", property_get_load_error, 0, SD_BUS_VTABLE_PROPERTY_CONST),
7e7c9f
         SD_BUS_PROPERTY("Transient", "b", bus_property_get_bool, offsetof(Unit, transient), SD_BUS_VTABLE_PROPERTY_CONST),
7e7c9f
-        SD_BUS_PROPERTY("CollectMode", "s", property_get_collect_mode, offsetof(Unit, collect_mode), 0),
7e7c9f
+        SD_BUS_PROPERTY("CollectMode", "s", property_get_collect_mode, offsetof(Unit, collect_mode), SD_BUS_VTABLE_PROPERTY_CONST),
7e7c9f
 
7e7c9f
         SD_BUS_METHOD("Start", "s", "o", method_start, 0),
7e7c9f
         SD_BUS_METHOD("Stop", "s", "o", method_stop, 0),