summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-08 21:45:44 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-08 21:45:44 +0200
commit1189684177225925f5927d9f8e1e3f699adf6de3 (patch)
treed47b9a9fcfe166912aeb9d80b1811267f81d891e
parente3e9cc803e28185cf32feb3cccc092ec9bcff4ff (diff)
logind: don't confuse 'shared' with a session of its own
-rw-r--r--src/logind.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logind.c b/src/logind.c
index cbc878e682..f96ace2315 100644
--- a/src/logind.c
+++ b/src/logind.c
@@ -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);