diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-27 20:48:28 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-27 20:48:28 +0100 |
commit | 02b16a19a4f786f63ad6f4e8f6e185b41c9ca386 (patch) | |
tree | 68d4c2c3d751e05c710c962f2b2754df5f68eeda | |
parent | d8c9d1f9e494b149cb8f1c7e0d79b37bedf21bd5 (diff) |
logind: make sure we create /var/lib/systemd before using it
-rw-r--r-- | src/login/logind-dbus.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |