dm0 / rpms / systemd

Forked from rpms/systemd 5 years ago
Clone
9ecd5b8
From 304f954c4fb7a0d3a52011b55f53ce890ea853d7 Mon Sep 17 00:00:00 2001
9ecd5b8
From: Lennart Poettering <lennart@poettering.net>
9ecd5b8
Date: Wed, 19 Nov 2014 20:52:23 +0100
9ecd5b8
Subject: [PATCH] core: watchdog bus properties cannot be both writable and
9ecd5b8
 constant
9ecd5b8
9ecd5b8
(cherry picked from commit 4c3f1641f13b7687a0dc234d3ae387b7c40494ff)
9ecd5b8
---
9ecd5b8
 src/core/dbus-manager.c | 4 ++--
9ecd5b8
 1 file changed, 2 insertions(+), 2 deletions(-)
9ecd5b8
9ecd5b8
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
9ecd5b8
index c54abd3b4e..1384e8faba 100644
9ecd5b8
--- a/src/core/dbus-manager.c
9ecd5b8
+++ b/src/core/dbus-manager.c
9ecd5b8
@@ -1884,8 +1884,8 @@ const sd_bus_vtable bus_manager_vtable[] = {
9ecd5b8
         SD_BUS_PROPERTY("UnitPath", "as", NULL, offsetof(Manager, lookup_paths.unit_path), SD_BUS_VTABLE_PROPERTY_CONST),
9ecd5b8
         SD_BUS_PROPERTY("DefaultStandardOutput", "s", bus_property_get_exec_output, offsetof(Manager, default_std_output), SD_BUS_VTABLE_PROPERTY_CONST),
9ecd5b8
         SD_BUS_PROPERTY("DefaultStandardError", "s", bus_property_get_exec_output, offsetof(Manager, default_std_output), SD_BUS_VTABLE_PROPERTY_CONST),
9ecd5b8
-        SD_BUS_WRITABLE_PROPERTY("RuntimeWatchdogUSec", "t", bus_property_get_usec, property_set_runtime_watchdog, offsetof(Manager, runtime_watchdog), SD_BUS_VTABLE_PROPERTY_CONST),
9ecd5b8
-        SD_BUS_WRITABLE_PROPERTY("ShutdownWatchdogUSec", "t", bus_property_get_usec, bus_property_set_usec, offsetof(Manager, shutdown_watchdog), SD_BUS_VTABLE_PROPERTY_CONST),
9ecd5b8
+        SD_BUS_WRITABLE_PROPERTY("RuntimeWatchdogUSec", "t", bus_property_get_usec, property_set_runtime_watchdog, offsetof(Manager, runtime_watchdog), 0),
9ecd5b8
+        SD_BUS_WRITABLE_PROPERTY("ShutdownWatchdogUSec", "t", bus_property_get_usec, bus_property_set_usec, offsetof(Manager, shutdown_watchdog), 0),
9ecd5b8
         SD_BUS_PROPERTY("ControlGroup", "s", NULL, offsetof(Manager, cgroup_root), 0),
9ecd5b8
         SD_BUS_PROPERTY("SystemState", "s", property_get_system_state, 0, 0),
9ecd5b8