chiark / gitweb /
Prep v239: Add missing updates that evaded migration.
[elogind.git] / src / login / logind-user.c
index b7bac297c3eeb4dbf2dc00ed2d62bd1b27ba4b7c..60e862e3b0b296b029f8a1de94246db178f43d94 100644 (file)
@@ -1,9 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  This file is part of systemd.
-
-  Copyright 2011 Lennart Poettering
-***/
 
 #include <errno.h>
 #include <string.h>
@@ -291,7 +286,7 @@ int user_load(User *u) {
 
         assert(u);
 
-        r = parse_env_file(u->state_file, NEWLINE,
+        r = parse_env_file(NULL, u->state_file, NEWLINE,
 #if 0 /// elogind neither supports service nor slice jobs
                            "SERVICE_JOB", &u->service_job,
                            "SLICE_JOB",   &u->slice_job,
@@ -322,12 +317,6 @@ int user_load(User *u) {
 }
 
 
-#if 0 /// elogind can not ask systemd via dbus to start user services
-#else
-        assert(u);
-
-        hashmap_put(u->manager->user_units, u->slice, u);
-#endif // 0
 static int user_start_service(User *u) {
 #if 0 /// elogind can not ask systemd via dbus to start user services
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;