dcavalca / rpms / systemd

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