]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Respond with password of "" if boot splash plugin isn't loaded
authorRay Strode <rstrode@redhat.com>
Mon, 2 Jun 2008 14:11:35 +0000 (10:11 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 2 Jun 2008 14:11:35 +0000 (10:11 -0400)
src/main.c

index 3b19155c6f2d361aeceb98396b9802d2fe7e7790..70916fb38c944875bfd7de78b8c5be96d15a1687 100644 (file)
@@ -126,6 +126,12 @@ on_ask_for_password (state_t *state,
 {
   password_answer_closure_t *closure;
 
+  if (state->boot_splash != NULL)
+    {
+      answer_handler (answer_data, "", state->boot_server);
+      return;
+    }
+
   closure = malloc (sizeof (password_answer_closure_t));
   closure->handler = answer_handler;
   closure->data = answer_data;