]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind-dbus: use SESSION_IS_{SELF,AUTO} instead of SEAT_* for sessions 31013/head
authorMike Yuan <me@yhndnzj.com>
Thu, 18 Jan 2024 15:22:39 +0000 (23:22 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 19 Jan 2024 12:12:31 +0000 (20:12 +0800)
src/login/logind-dbus.c

index 2f722d2491063cb2a01c2e1c43cc1c38c53614ad..8f70253ef6342c1aee0326c7257a1d5dde12d242 100644 (file)
@@ -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);