richardphibel / rpms / systemd

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