chiark / gitweb /
Prep v220: Apply "Fixes to user and session saving"
[elogind.git] / src / login / logind-session-dbus.c
index 563153e2d92b64644f35e3c587cbd4da43a71bd3..b5ecc322f56e7fba9d6642a3b3e4e60daa6dc5a7 100644 (file)
@@ -714,9 +714,10 @@ int session_send_create_reply(Session *s, sd_bus_error *error) {
         if (fifo_fd < 0)
                 return fifo_fd;
 
-        /* Update the session state file before we notify the client
+        /* Update the session and user state file before we notify the client
          * about the result. */
         session_save(s);
+        user_save(s->user);
 
         p = session_bus_path(s);
         if (!p)