- If user hits escape, send "" as the password (bug 459111)
This commit is contained in:
parent
5f8ef1d59f
commit
eabdc29592
77
escape-sends-empty-password.patch
Normal file
77
escape-sends-empty-password.patch
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
commit e962a0bbd96bbec72f934a0f8053bd5c26dc21f4
|
||||||
|
Author: Ray Strode <rstrode@redhat.com>
|
||||||
|
Date: Wed Aug 27 16:01:28 2008 -0400
|
||||||
|
|
||||||
|
respond w/ "" if user hits esc to password prompt
|
||||||
|
|
||||||
|
This is so when we load the next plugin it won't
|
||||||
|
get confused.
|
||||||
|
|
||||||
|
diff --git a/src/plugins/splash/details/plugin.c b/src/plugins/splash/details/plugin.c
|
||||||
|
index 50e13ab..3706e81 100644
|
||||||
|
--- a/src/plugins/splash/details/plugin.c
|
||||||
|
+++ b/src/plugins/splash/details/plugin.c
|
||||||
|
@@ -205,6 +205,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
|
||||||
|
|
||||||
|
ply_trace ("hiding splash screen");
|
||||||
|
|
||||||
|
+ if (plugin->pending_password_answer != NULL)
|
||||||
|
+ {
|
||||||
|
+ ply_answer_with_string (plugin->pending_password_answer, "");
|
||||||
|
+ plugin->pending_password_answer = NULL;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
ply_window_set_keyboard_input_handler (window, NULL, NULL);
|
||||||
|
ply_window_set_backspace_handler (window, NULL, NULL);
|
||||||
|
ply_window_set_enter_handler (window, NULL, NULL);
|
||||||
|
diff --git a/src/plugins/splash/fade-in/plugin.c b/src/plugins/splash/fade-in/plugin.c
|
||||||
|
index 2641217..604c181 100644
|
||||||
|
--- a/src/plugins/splash/fade-in/plugin.c
|
||||||
|
+++ b/src/plugins/splash/fade-in/plugin.c
|
||||||
|
@@ -578,6 +578,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
|
||||||
|
{
|
||||||
|
assert (plugin != NULL);
|
||||||
|
|
||||||
|
+ if (plugin->pending_password_answer != NULL)
|
||||||
|
+ {
|
||||||
|
+ ply_answer_with_string (plugin->pending_password_answer, "");
|
||||||
|
+ plugin->pending_password_answer = NULL;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
ply_window_set_keyboard_input_handler (window, NULL, NULL);
|
||||||
|
ply_window_set_backspace_handler (window, NULL, NULL);
|
||||||
|
ply_window_set_enter_handler (window, NULL, NULL);
|
||||||
|
diff --git a/src/plugins/splash/spinfinity/plugin.c b/src/plugins/splash/spinfinity/plugin.c
|
||||||
|
index 44d66cf..cd9a85b 100644
|
||||||
|
--- a/src/plugins/splash/spinfinity/plugin.c
|
||||||
|
+++ b/src/plugins/splash/spinfinity/plugin.c
|
||||||
|
@@ -387,6 +387,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
|
||||||
|
{
|
||||||
|
assert (plugin != NULL);
|
||||||
|
|
||||||
|
+ if (plugin->pending_password_answer != NULL)
|
||||||
|
+ {
|
||||||
|
+ ply_answer_with_string (plugin->pending_password_answer, "");
|
||||||
|
+ plugin->pending_password_answer = NULL;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
ply_window_set_keyboard_input_handler (window, NULL, NULL);
|
||||||
|
ply_window_set_backspace_handler (window, NULL, NULL);
|
||||||
|
ply_window_set_enter_handler (window, NULL, NULL);
|
||||||
|
diff --git a/src/plugins/splash/text/plugin.c b/src/plugins/splash/text/plugin.c
|
||||||
|
index 11c2dc4..465d763 100644
|
||||||
|
--- a/src/plugins/splash/text/plugin.c
|
||||||
|
+++ b/src/plugins/splash/text/plugin.c
|
||||||
|
@@ -253,6 +253,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
|
||||||
|
|
||||||
|
ply_trace ("hiding splash screen");
|
||||||
|
|
||||||
|
+ if (plugin->pending_password_answer != NULL)
|
||||||
|
+ {
|
||||||
|
+ ply_answer_with_string (plugin->pending_password_answer, "");
|
||||||
|
+ plugin->pending_password_answer = NULL;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
ply_window_set_keyboard_input_handler (window, NULL, NULL);
|
||||||
|
ply_window_set_backspace_handler (window, NULL, NULL);
|
||||||
|
ply_window_set_enter_handler (window, NULL, NULL);
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Plymouth Graphical Boot Animation and Logger
|
Summary: Plymouth Graphical Boot Animation and Logger
|
||||||
Name: plymouth
|
Name: plymouth
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 0.2008.08.27.1%{?dist}
|
Release: 0.2008.08.27.2%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
|
Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
|
||||||
@ -10,6 +10,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
|
|
||||||
Patch0: plymouth-0.5.0-textbar-hotness.patch
|
Patch0: plymouth-0.5.0-textbar-hotness.patch
|
||||||
Patch1: fix-text-plugin-crasher.patch
|
Patch1: fix-text-plugin-crasher.patch
|
||||||
|
Patch2: fix-text-plugin-crasher.patch
|
||||||
|
|
||||||
Obsoletes: rhgb < 1:10.0.0
|
Obsoletes: rhgb < 1:10.0.0
|
||||||
Provides: rhgb = 1:10.0.0
|
Provides: rhgb = 1:10.0.0
|
||||||
@ -108,6 +109,7 @@ spins in the shape of an infinity sign.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .textbar
|
%patch0 -p1 -b .textbar
|
||||||
%patch1 -p1 -b .fix-text-plugin-crasher
|
%patch1 -p1 -b .fix-text-plugin-crasher
|
||||||
|
%patch2 -p1 -b .escape-sends-empty-password
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --enable-tracing --disable-tests --without-boot-entry \
|
%configure --enable-tracing --disable-tests --without-boot-entry \
|
||||||
@ -228,6 +230,9 @@ fi
|
|||||||
%{_libdir}/plymouth/spinfinity.so
|
%{_libdir}/plymouth/spinfinity.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 27 2008 Ray Strode <rstrode@redhat.com> 0.5.0-0.2008.08.27.2
|
||||||
|
- If user hits escape, send "" as the password (bug 459111)
|
||||||
|
|
||||||
* Wed Aug 27 2008 Ray Strode <rstrode@redhat.com> 0.5.0-0.2008.08.27.1
|
* Wed Aug 27 2008 Ray Strode <rstrode@redhat.com> 0.5.0-0.2008.08.27.1
|
||||||
- Fix another crasher for users with encrypted disks (this time in
|
- Fix another crasher for users with encrypted disks (this time in
|
||||||
the text plugin, not the client)
|
the text plugin, not the client)
|
||||||
|
Loading…
Reference in New Issue
Block a user