logind: Properly list the ACTIVE_SEATS in the user session tracking file.

Prevsiouly the first active seat for a user would never be listed and
any subsequent seats would be concatenated on without any spaces.
This commit is contained in:
Colin Guthrie
2012-09-12 08:19:43 +02:00
committed by Lennart Poettering
parent c9caad8021
commit 47acb2f15f
+3 -1
View File
@@ -189,7 +189,9 @@ int user_save(User *u) {
if (first)
first = false;
else
fputs(i->seat->id, f);
fputc(' ', f);
fputs(i->seat->id, f);
}
fputc('\n', f);
}