mirror of
https://github.com/systemd/systemd.git
synced 2025-02-18 21:57:48 +03:00
logind: make sure we create /var/lib/systemd before using it
This commit is contained in:
parent
d8c9d1f9e4
commit
02b16a19a4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user