]> git.ozlabs.org Git - petitboot/blobdiff - discover/device-handler.c
discover/discover-server: Restrict clients based on uid
[petitboot] / discover / device-handler.c
index 983c50909ef7f5900f916bb5cf4040b7bdf6d994..729ed2c0f52ae76f9cbc7474cd803ed773bab3a6 100644 (file)
@@ -534,6 +534,7 @@ static void _device_handler_vstatus(struct device_handler *handler,
        status.type = type;
        status.message = talloc_vasprintf(handler, fmt, ap);
        status.backlog = false;
+       status.boot_active = false;
 
        device_handler_status(handler, &status);
 
@@ -1500,8 +1501,11 @@ void device_handler_update_config(struct device_handler *handler,
        int rc;
 
        rc = config_set(config);
-       if (rc)
+       if (rc) {
+               device_handler_status_err(handler,
+                               "Failed to update configuration!");
                return;
+       }
 
        discover_server_notify_config(handler->server, config);
        device_handler_update_lang(config->lang);