diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-12-26 13:38:47 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-12-26 18:53:03 +0100 |
commit | e14348c616eb8a8a38528b8b451a846089c4a72c (patch) | |
tree | ef8e2fd326b8e9749f32ec78d031810c41956a70 /src/sleep | |
parent | coccinelle: fix typo (diff) | |
download | systemd-e14348c616eb8a8a38528b8b451a846089c4a72c.tar.xz systemd-e14348c616eb8a8a38528b8b451a846089c4a72c.zip |
sleep: connect to correct bus when locking homed-managed homes
Partially reverts 122f6f1eaa4447449c7054793f6497eb9e4d03c6
Fixes https://github.com/systemd/systemd/issues/29938#issuecomment-1869508708
Diffstat (limited to 'src/sleep')
-rw-r--r-- | src/sleep/sleep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index 3784796487..deb165ead8 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -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"); |