chiark / gitweb /
localectl: port over to bus_log_create_error()
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Nov 2013 18:48:42 +0000 (19:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 8 Nov 2013 18:48:42 +0000 (19:48 +0100)
TODO
src/locale/localectl.c
src/run/run.c

diff --git a/TODO b/TODO
index 9f83a24418b8a46136ab2c3e83acaeacbd0eb76d..38246f6567c1612ddc32640c11133cd02009a2d1 100644 (file)
--- a/TODO
+++ b/TODO
@@ -50,7 +50,9 @@ Features:
 
 * add field to transient units that indicate whether systemd or somebody else saves/restores its settings, for integration with libvirt
 
-* wait filter, unify dispatch table in systemctl_main() and friends, convert all to bus_log_create_error()
+* systemctl: rework wait filter to not require match callback
+
+* unify dispatch table in systemctl_main() and friends
 
 * bus: access policy as vtable flag
 
index 31deb674dceca55a4f9344016ea16d0eeb2bac22..ed66668f79f5645bd579a65980dde4865d666d80 100644 (file)
@@ -154,15 +154,15 @@ static int set_locale(sd_bus *bus, char **args, unsigned n) {
                         "org.freedesktop.locale1",
                         "SetLocale", &m);
         if (r < 0)
-                return r;
+                return bus_log_create_error(r);
 
         r = sd_bus_message_append_strv(m, args + 1);
         if (r < 0)
-                return r;
+                return bus_log_create_error(r);
 
         r = sd_bus_message_append(m, "b", arg_ask_password);
         if (r < 0)
-                return r;
+                return bus_log_create_error(r);
 
         r = sd_bus_send_with_reply_and_block(bus, m, 0, &error, NULL);
         if (r < 0) {
index 3fb72e61035c79749009d832c45307bd3f44d8f7..f4c70050894c9fd4cbeff60a554b9bcca6eabfe2 100644 (file)
@@ -28,6 +28,7 @@
 #include "build.h"
 #include "unit-name.h"
 #include "path-util.h"
+#include "bus-error.h"
 
 static bool arg_scope = false;
 static bool arg_remain_after_exit = false;