]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/home/homed-home-bus.c
homework: Implement offline updates
[thirdparty/systemd.git] / src / home / homed-home-bus.c
index dd3603efa7f50deff49540aae520b141a1dae91b..23578fe314be5cbbd961e634460c5c971fa36ddc 100644 (file)
@@ -6,6 +6,7 @@
 #include "bus-polkit.h"
 #include "fd-util.h"
 #include "format-util.h"
+#include "home-util.h"
 #include "homed-bus.h"
 #include "homed-home-bus.h"
 #include "homed-home.h"
@@ -432,8 +433,8 @@ int bus_home_update_record(
         if (r < 0)
                 return r;
 
-        if (flags != 0)
-                return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, "Provided flags are unsupported.");
+        if ((flags & ~SD_HOMED_UPDATE_FLAGS_ALL) != 0)
+                return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid flags provided.");
 
         r = home_verify_polkit_async(
                         h,
@@ -457,6 +458,8 @@ int bus_home_update_record(
         if (r < 0)
                 return r;
 
+        h->current_operation->call_flags = flags;
+
         return 1;
 }