1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-27 13:57:26 +03:00

logind: never consider a closing session relevant for PK checks

https://bugzilla.redhat.com/show_bug.cgi?id=1010215
This commit is contained in:
Lennart Poettering 2013-09-26 21:32:47 +02:00
parent 90dc8c2ea2
commit c68ba912c3

View File

@ -957,6 +957,7 @@ static int have_multiple_sessions(
* count, and non-login sessions do not count either. */
HASHMAP_FOREACH(session, m->sessions, i)
if (session->class == SESSION_USER &&
!session->closing &&
session->user->uid != uid)
return true;