summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-28 23:21:43 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-28 23:21:43 +0200
commitfde78a3ac01db57a384e5936bf2c033dcdeae494 (patch)
tree5ea31dacc97cb0464e339cf9fc8e9300d5d3cf86
parent6560d8dec982bd2fb5160a65cbe54dc176df7915 (diff)
logind: fix generation of seat state file
-rw-r--r--src/logind-seat.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c
index 11b3a65b64..5663aeea4b 100644
--- a/src/logind-seat.c
+++ b/src/logind-seat.c
@@ -117,27 +117,20 @@ int seat_save(Seat *s) {
if (s->sessions) {
Session *i;
- fputs("OTHER=", f);
+ fputs("SESSIONS=", f);
LIST_FOREACH(sessions_by_seat, i, s->sessions) {
- if (i == s->active)
- continue;
-
fprintf(f,
"%s%c",
i->id,
i->sessions_by_seat_next ? ' ' : '\n');
}
- fputs("OTHER_UIDS=", f);
- LIST_FOREACH(sessions_by_seat, i, s->sessions) {
- if (i == s->active)
- continue;
-
+ fputs("UIDS=", f);
+ LIST_FOREACH(sessions_by_seat, i, s->sessions)
fprintf(f,
"%lu%c",
(unsigned long) i->user->uid,
i->sessions_by_seat_next ? ' ' : '\n');
- }
}
fflush(f);