From: Ray Strode Date: Mon, 2 Jun 2008 14:11:35 +0000 (-0400) Subject: Respond with password of "" if boot splash plugin isn't loaded X-Git-Tag: 0.2.0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4842e3c748c4e1eb396e15547c927faa6ba40c6;p=thirdparty%2Fplymouth.git Respond with password of "" if boot splash plugin isn't loaded --- diff --git a/src/main.c b/src/main.c index 3b19155c..70916fb3 100644 --- a/src/main.c +++ b/src/main.c @@ -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;