logind-dbus: count user-early sessions in verify_shutdown_creds too
Follow-up for 59afe07c21
This commit is contained in:
@@ -1671,7 +1671,7 @@ static int have_multiple_sessions(
|
||||
/* Check for other users' sessions. Greeter sessions do not
|
||||
* count, and non-login sessions do not count either. */
|
||||
HASHMAP_FOREACH(session, m->sessions)
|
||||
if (session->class == SESSION_USER &&
|
||||
if (IN_SET(session->class, SESSION_USER, SESSION_USER_EARLY) &&
|
||||
session->user->user_record->uid != uid)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user