chiark / gitweb /
logind: make sure we create /var/lib/systemd before using it
authorLennart Poettering <lennart@poettering.net>
Fri, 27 Jan 2012 19:48:28 +0000 (20:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 27 Jan 2012 19:48:28 +0000 (20:48 +0100)
src/login/logind-dbus.c

index 42dd54d..da2eb14 100644 (file)
@@ -1188,6 +1188,8 @@ static DBusHandlerResult manager_message_handler(
                 if (r < 0)
                         return bus_send_error_reply(connection, message, &error, r);
 
+                mkdir_p("/var/lib/systemd", 0755);
+
                 r = safe_mkdir("/var/lib/systemd/linger", 0755, 0, 0);
                 if (r < 0)
                         return bus_send_error_reply(connection, message, &error, r);