Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
steam
systemd
Commits
78ab361c
Commit
78ab361c
authored
Sep 04, 2012
by
Colin Guthrie
Committed by
Lennart Poettering
Sep 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logind: Avoid unnecesary rewrite of user file when switching sessions of the same user.
parent
23bd3b62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/login/logind-seat.c
src/login/logind-seat.c
+2
-1
No files found.
src/login/logind-seat.c
View file @
78ab361c
...
...
@@ -263,7 +263,8 @@ int seat_set_active(Seat *s, Session *session) {
if
(
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment