From: Lennart Poettering Date: Tue, 28 Jun 2011 21:21:43 +0000 (+0200) Subject: logind: fix generation of seat state file X-Git-Tag: v30~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fde78a3ac01db57a384e5936bf2c033dcdeae494;p=thirdparty%2Fsystemd.git logind: fix generation of seat state file --- diff --git a/src/logind-seat.c b/src/logind-seat.c index 11b3a65b643..5663aeea4bb 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);