572a44
From 83062f40f3e39d089396ad7918620ecab8534179 Mon Sep 17 00:00:00 2001
572a44
From: Michal Sekletar <msekleta@redhat.com>
572a44
Date: Tue, 11 Mar 2014 20:42:42 +0100
572a44
Subject: [PATCH] logind: pass pointer to User object to user_save()
572a44
572a44
---
572a44
 src/login/logind-session.c | 2 +-
572a44
 1 file changed, 1 insertion(+), 1 deletion(-)
572a44
572a44
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
572a44
index d7c3187..b0e4bf6 100644
572a44
--- a/src/login/logind-session.c
572a44
+++ b/src/login/logind-session.c
572a44
@@ -686,7 +686,7 @@ int session_stop(Session *s) {
572a44
         s->stopping = true;
572a44
 
572a44
         session_save(s);
572a44
-        user_save(s);
572a44
+        user_save(s->user);
572a44
 
572a44
         return r;
572a44
 }