From ef9eb646e5fb7b460aca25de06d1315fcf44ca19 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Thu, 18 Jan 2024 23:22:39 +0800 Subject: [PATCH] logind-dbus: use SESSION_IS_{SELF,AUTO} instead of SEAT_* for sessions --- src/login/logind-dbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 2f722d24910..8f70253ef63 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -141,9 +141,9 @@ int manager_get_session_from_creds( assert(m); assert(ret); - if (SEAT_IS_SELF(name)) /* the caller's own session */ + if (SESSION_IS_SELF(name)) /* the caller's own session */ return get_sender_session(m, message, false, error, ret); - if (SEAT_IS_AUTO(name)) /* The caller's own session if they have one, otherwise their user's display session */ + if (SESSION_IS_AUTO(name)) /* The caller's own session if they have one, otherwise their user's display session */ return get_sender_session(m, message, true, error, ret); session = hashmap_get(m->sessions, name); -- 2.47.3