]> err.no Git - systemd/commitdiff
logind: don't confuse 'shared' with a session of its own
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Jul 2011 19:45:44 +0000 (21:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 8 Jul 2011 19:45:44 +0000 (21:45 +0200)
src/logind.c

index cbc878e68234a01a27edb2d1537e7c4e7a58c126..f96ace2315734b4dcd99b14a2d8c6f015cc369e6 100644 (file)
@@ -451,7 +451,6 @@ static int manager_enumerate_users_from_cgroup(Manager *m) {
         return r;
 }
 
-
 static int manager_enumerate_linger_users(Manager *m) {
         DIR *d;
         struct dirent *de;
@@ -564,6 +563,9 @@ static int manager_enumerate_sessions_from_cgroup(Manager *m) {
                 while ((k = cg_read_subgroup(d, &name)) > 0) {
                         Session *session;
 
+                        if (streq(name, "shared"))
+                                continue;
+
                         k = manager_add_session(m, u, name, &session);
                         if (k < 0) {
                                 free(name);