ryantimwilson / rpms / systemd

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