chiark / gitweb /
logind: properly write user state files
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Jul 2011 02:15:53 +0000 (04:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Jul 2011 02:15:53 +0000 (04:15 +0200)
src/logind-user.c

index 3c245c0..613a5c3 100644 (file)
@@ -142,7 +142,7 @@ int user_save(User *u) {
                         fprintf(f,
                                 "%s%c",
                                 i->id,
-                                i->sessions_by_seat_next ? ' ' : '\n');
+                                i->sessions_by_user_next ? ' ' : '\n');
                 }
 
                 fputs("SEATS=", f);
@@ -151,7 +151,7 @@ int user_save(User *u) {
                                 fprintf(f,
                                         "%s%c",
                                         i->seat->id,
-                                        i->sessions_by_seat_next ? ' ' : '\n');
+                                        i->sessions_by_user_next ? ' ' : '\n');
                 }
 
                 fputs("ACTIVE_SESSIONS=", f);
@@ -160,7 +160,7 @@ int user_save(User *u) {
                                 fprintf(f,
                                         "%lu%c",
                                         (unsigned long) i->user->uid,
-                                        i->sessions_by_seat_next ? ' ' : '\n');
+                                        i->sessions_by_user_next ? ' ' : '\n');
 
                 fputs("ACTIVE_SEATS=", f);
                 LIST_FOREACH(sessions_by_user, i, u->sessions) {
@@ -168,7 +168,7 @@ int user_save(User *u) {
                                 fprintf(f,
                                         "%s%c",
                                         i->seat->id,
-                                        i->sessions_by_seat_next ? ' ' : '\n');
+                                        i->sessions_by_user_next ? ' ' : '\n');
                 }
         }