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,7 +263,8 @@ int seat_set_active(Seat *s, Session *session) {
|
|||||||
|
|
||||||
if (old_active) {
|
if (old_active) {
|
||||||
session_save(old_active);
|
session_save(old_active);
|
||||||
user_save(old_active->user);
|
if (!session || session->user != old_active->user)
|
||||||
|
user_save(old_active->user);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user