From: Mike Yuan Date: Thu, 18 Jan 2024 15:22:39 +0000 (+0800) Subject: logind-dbus: use SESSION_IS_{SELF,AUTO} instead of SEAT_* for sessions X-Git-Tag: v256-rc1~1100^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F31013%2Fhead;p=thirdparty%2Fsystemd.git logind-dbus: use SESSION_IS_{SELF,AUTO} instead of SEAT_* for sessions --- 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);