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:
parent
23bd3b6263
commit
78ab361c8f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user