From: Mike Yuan Date: Tue, 26 Dec 2023 12:38:47 +0000 (+0800) Subject: sleep: connect to correct bus when locking homed-managed homes X-Git-Tag: v256-rc1~1381 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e14348c616eb8a8a38528b8b451a846089c4a72c;p=thirdparty%2Fsystemd.git sleep: connect to correct bus when locking homed-managed homes Partially reverts 122f6f1eaa4447449c7054793f6497eb9e4d03c6 Fixes https://github.com/systemd/systemd/issues/29938#issuecomment-1869508708 --- diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index 3784796487a..deb165ead89 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");