daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
572a44
From 34c3bd12815064d0d3820ac0b30c0952ba5fd1fe Mon Sep 17 00:00:00 2001
572a44
From: Michal Sekletar <msekleta@redhat.com>
572a44
Date: Mon, 10 Mar 2014 18:26:34 +0100
572a44
Subject: [PATCH] logind: save user state after stopping the session
572a44
572a44
---
572a44
 src/login/logind-session.c | 2 ++
572a44
 1 file changed, 2 insertions(+)
572a44
572a44
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
572a44
index 3ab41e6..2a2a670 100644
572a44
--- a/src/login/logind-session.c
572a44
+++ b/src/login/logind-session.c
572a44
@@ -685,6 +685,8 @@ int session_stop(Session *s) {
572a44
         s->stopping = true;
572a44
 
572a44
         session_save(s);
572a44
+        user_save(s);
572a44
+
572a44
         return r;
572a44
 }
572a44