]> err.no Git - systemd/commitdiff
logind: fix generation of seat state file
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Jun 2011 21:21:43 +0000 (23:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 28 Jun 2011 21:21:43 +0000 (23:21 +0200)
src/logind-seat.c

index 11b3a65b64354700746515bb653d146834d3df9e..5663aeea4bb46de06ce996d1cde24f060636ac97 100644 (file)
@@ -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);