Merge lp:~robert-ancell/lightdm/dont-unlock-session-without-authentication into lp:lightdm

Proposed by Robert Ancell
Status: Merged
Approved by: Robert Ancell
Approved revision: 1759
Merged at revision: 1761
Proposed branch: lp:~robert-ancell/lightdm/dont-unlock-session-without-authentication
Merge into: lp:lightdm
Diff against target: 35 lines (+1/-7)
2 files modified
src/seat.c (+1/-4)
tests/scripts/switch-to-greeter-new-session-logout-old.conf (+0/-3)
To merge this branch: bzr merge lp:~robert-ancell/lightdm/dont-unlock-session-without-authentication
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
LightDM Development Team Pending
Review via email: mp+181945@code.launchpad.net

Commit message

Only unlock sessions when switching to them if the user authenticated via the greeter. This fixes a regression introduced in 1.7.5.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:1759
http://jenkins.qa.ubuntu.com/job/lightdm-ci/181/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/lightdm-saucy-amd64-ci/98

Click here to trigger a rebuild:
http://s-jenkins:8080/job/lightdm-ci/181/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/seat.c'
--- src/seat.c 2013-08-21 23:06:57 +0000
+++ src/seat.c 2013-08-24 04:02:30 +0000
@@ -186,10 +186,6 @@
186186
187 g_return_if_fail (seat != NULL);187 g_return_if_fail (seat != NULL);
188188
189 /* Unlock this session */
190 if (session != seat->priv->active_session && !IS_GREETER (session))
191 session_unlock (session);
192
193 SEAT_GET_CLASS (seat)->set_active_session (seat, session);189 SEAT_GET_CLASS (seat)->set_active_session (seat, session);
194190
195 /* Stop any greeters */191 /* Stop any greeters */
@@ -921,6 +917,7 @@
921 {917 {
922 l_debug (seat, "Returning to existing user session %s", username);918 l_debug (seat, "Returning to existing user session %s", username);
923 session_stop (session);919 session_stop (session);
920 session_unlock (existing_session);
924 seat_set_active_session (seat, existing_session);921 seat_set_active_session (seat, existing_session);
925 return TRUE;922 return TRUE;
926 }923 }
927924
=== modified file 'tests/scripts/switch-to-greeter-new-session-logout-old.conf'
--- tests/scripts/switch-to-greeter-new-session-logout-old.conf 2013-08-08 10:10:19 +0000
+++ tests/scripts/switch-to-greeter-new-session-logout-old.conf 2013-08-24 04:02:30 +0000
@@ -63,9 +63,6 @@
63#?*SWITCH-TO-USER USERNAME=have-password163#?*SWITCH-TO-USER USERNAME=have-password1
64#?RUNNER SWITCH-TO-USER USERNAME=have-password164#?RUNNER SWITCH-TO-USER USERNAME=have-password1
6565
66# Existing session is unlocked
67#?LOGIN1 UNLOCK-SESSION
68
69# Switch to greeter66# Switch to greeter
70#?VT ACTIVATE VT=767#?VT ACTIVATE VT=7
7168

Subscribers

People subscribed via source and target branches