mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
sleep: connect to correct bus when locking homed-managed homes
Partially reverts 122f6f1eaa
Fixes https://github.com/systemd/systemd/issues/29938#issuecomment-1869508708
This commit is contained in:
parent
5a4631bd8f
commit
e14348c616
|
@ -176,7 +176,7 @@ static int lock_all_homes(void) {
|
|||
/* Let's synchronously lock all home directories managed by homed that have been marked for it. This
|
||||
* way the key material required to access these volumes is hopefully removed from memory. */
|
||||
|
||||
r = bus_connect_system_systemd(&bus);
|
||||
r = sd_bus_open_system(&bus);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to connect to system bus: %m");
|
||||
|
||||
|
|
Loading…
Reference in a new issue