diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-18 12:19:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-18 17:04:05 +0100 |
commit | d72c2c356d6c15f1be46ec0b92a5b8f5c4e3d6c6 (patch) | |
tree | 87a70d02c0f7bed21b8b94495a74cc70a272e69d /src/shared | |
parent | cdf578ef1165c31bcd17322f3b18372bcd993e46 (diff) |
bus-util: make sure --property=RemainAfterElapse=1 works
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/bus-util.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index 68b86c3fb0..dab4934901 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -1453,13 +1453,11 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen "SendSIGHUP", "SendSIGKILL", "WakeSystem", "DefaultDependencies", "IgnoreSIGPIPE", "TTYVHangup", "TTYReset", "RemainAfterExit", "PrivateTmp", "PrivateDevices", "PrivateNetwork", "NoNewPrivileges", - "SyslogLevelPrefix", "Delegate")) { + "SyslogLevelPrefix", "Delegate", "RemainAfterElapse")) { r = parse_boolean(eq); - if (r < 0) { - log_error("Failed to parse boolean assignment %s.", assignment); - return -EINVAL; - } + if (r < 0) + return log_error_errno(r, "Failed to parse boolean assignment %s.", assignment); r = sd_bus_message_append(m, "v", "b", r); |