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
1=== modified file 'src/seat.c'
2--- src/seat.c 2013-08-21 23:06:57 +0000
3+++ src/seat.c 2013-08-24 04:02:30 +0000
4@@ -186,10 +186,6 @@
5
6 g_return_if_fail (seat != NULL);
7
8- /* Unlock this session */
9- if (session != seat->priv->active_session && !IS_GREETER (session))
10- session_unlock (session);
11-
12 SEAT_GET_CLASS (seat)->set_active_session (seat, session);
13
14 /* Stop any greeters */
15@@ -921,6 +917,7 @@
16 {
17 l_debug (seat, "Returning to existing user session %s", username);
18 session_stop (session);
19+ session_unlock (existing_session);
20 seat_set_active_session (seat, existing_session);
21 return TRUE;
22 }
23
24=== modified file 'tests/scripts/switch-to-greeter-new-session-logout-old.conf'
25--- tests/scripts/switch-to-greeter-new-session-logout-old.conf 2013-08-08 10:10:19 +0000
26+++ tests/scripts/switch-to-greeter-new-session-logout-old.conf 2013-08-24 04:02:30 +0000
27@@ -63,9 +63,6 @@
28 #?*SWITCH-TO-USER USERNAME=have-password1
29 #?RUNNER SWITCH-TO-USER USERNAME=have-password1
30
31-# Existing session is unlocked
32-#?LOGIN1 UNLOCK-SESSION
33-
34 # Switch to greeter
35 #?VT ACTIVATE VT=7
36

Subscribers

People subscribed via source and target branches