From 02b16a19a4f786f63ad6f4e8f6e185b41c9ca386 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 27 Jan 2012 20:48:28 +0100 Subject: logind: make sure we create /var/lib/systemd before using it --- src/login/logind-dbus.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 42dd54dc35..da2eb141c7 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -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); -- cgit v1.2.3-54-g00ecf