diff --git a/gdm-2.26.1-set-auth-flag.patch b/gdm-2.26.1-set-auth-flag.patch new file mode 100644 index 0000000..3e7dfbf --- /dev/null +++ b/gdm-2.26.1-set-auth-flag.patch @@ -0,0 +1,30 @@ +commit 43b1084d52892fffea7f2e6cd3731ad2a46b52bd +Author: Ray Strode +Date: Thu May 7 16:34:57 2009 -0400 + + Set is_authenticated to TRUE when authenticated + + Before the flag was never getting set causing btmp records to get + written when the session and slave are killed around the same time + (by switching runlevels) + +diff --git a/daemon/gdm-session-direct.c b/daemon/gdm-session-direct.c +index 34a126f..7259bf6 100644 +--- a/daemon/gdm-session-direct.c ++++ b/daemon/gdm-session-direct.c +@@ -334,6 +334,7 @@ gdm_session_direct_handle_authenticated (GdmSessionDirect *session, + dbus_connection_send (connection, reply, NULL); + dbus_message_unref (reply); + ++ session->priv->is_authenticated = TRUE; + _gdm_session_authenticated (GDM_SESSION (session)); + + return DBUS_HANDLER_RESULT_HANDLED; +@@ -361,6 +362,7 @@ gdm_session_direct_handle_authentication_failed (GdmSessionDirect *session, + + g_debug ("GdmSessionDirect: Emitting 'authentication-failed' signal"); + ++ session->priv->is_authenticated = FALSE; + _gdm_session_authentication_failed (GDM_SESSION (session), NULL); + + return DBUS_HANDLER_RESULT_HANDLED; diff --git a/gdm.spec b/gdm.spec index f274f63..340fa22 100644 --- a/gdm.spec +++ b/gdm.spec @@ -16,7 +16,7 @@ Summary: The GNOME Display Manager Name: gdm Version: 2.26.1 -Release: 7%{?dist} +Release: 8%{?dist} Epoch: 1 License: GPLv2+ Group: User Interface/X @@ -103,6 +103,9 @@ Patch20: session-client.patch # fixed upstream Patch21: xdmcp-use-after-free.patch +# http://bugzilla.redhat.com/499272 43b1084d52892fffea7f2e6cd3731ad2a46b52bd +Patch22: gdm-2.26.1-set-auth-flag.patch + # Fedora-specific Patch99: gdm-2.23.1-fedora-logo.patch @@ -147,8 +150,8 @@ The GDM fingerprint plugin provides functionality necessary to use a fingerprint %patch19 -p1 -b .multistack %patch20 -p1 -b .session-client - %patch21 -p1 -b .xdmcp-use-after-free +%patch22 -p1 -b .set-auth-flag %patch99 -p1 -b .fedora-logo @@ -390,6 +393,10 @@ fi %{_libdir}/gdm/simple-greeter/plugins/fingerprint.so %changelog +* Thu May 07 2009 Ray Strode - 1:2.26.1-8 +- Hopefully fix bug 499272 (weird behavior when typing + init 3 from within the session) + * Wed Apr 29 2009 Matthias Clasen - 1:2.26.1-7 - Don't rely on _BACKUP property for xkb initialization