summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2012-09-03 23:47:02 +0100
committerLennart Poettering <lennart@poettering.net>2012-09-12 08:19:43 +0200
commit47acb2f15f2319ec0fc341a4271d45067da2ed24 (patch)
treedb0ceec6728e9ca91ee201591d7e4603a994a8fe /src
parentc9caad802128a5dc599342c1400a61f31e8b17b5 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-user.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login/logind-user.c b/src/login/logind-user.c
index a33978c188..a6672ce670 100644
--- a/src/login/logind-user.c
+++ b/src/login/logind-user.c
@@ -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);
}