[systemd-devel] [PATCH 3/4] logind: Properly list the ACTIVE_SEATS in the user session tracking file.
Colin Guthrie
colin at mageia.org
Mon Sep 3 15:47:02 PDT 2012
Prevsiouly the first active seat for a user would never be listed and
any subsequent seats would be concatenated on without any spaces.
---
src/login/logind-user.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/login/logind-user.c b/src/login/logind-user.c
index a33978c..a6672ce 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);
}
--
1.7.12
More information about the systemd-devel
mailing list