1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-11 20:58:27 +03:00

logind: Avoid unnecesary rewrite of user file when switching sessions of the same user.

This commit is contained in:
Colin Guthrie 2012-09-04 01:37:28 +01:00 committed by Lennart Poettering
parent 23bd3b6263
commit 78ab361c8f

View File

@ -263,6 +263,7 @@ int seat_set_active(Seat *s, Session *session) {
if (old_active) {
session_save(old_active);
if (!session || session->user != old_active->user)
user_save(old_active->user);
}