chiark / gitweb /
logind: never consider a closing session relevant for PK checks
authorLennart Poettering <lennart@poettering.net>
Thu, 26 Sep 2013 19:32:47 +0000 (21:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Sep 2013 19:32:47 +0000 (21:32 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=1010215

src/login/logind-dbus.c

index e76381b..bb85c7d 100644 (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;