From: Colin Guthrie Date: Mon, 3 Sep 2012 22:47:02 +0000 (+0100) Subject: logind: Properly list the ACTIVE_SEATS in the user session tracking file. X-Git-Tag: v190~129 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=47acb2f15f2319ec0fc341a4271d45067da2ed24;p=elogind.git 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. --- diff --git a/src/login/logind-user.c b/src/login/logind-user.c index a33978c18..a6672ce67 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); }