]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sleep: connect to correct bus when locking homed-managed homes
authorMike Yuan <me@yhndnzj.com>
Tue, 26 Dec 2023 12:38:47 +0000 (20:38 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 26 Dec 2023 17:53:03 +0000 (18:53 +0100)
Partially reverts 122f6f1eaa4447449c7054793f6497eb9e4d03c6

Fixes https://github.com/systemd/systemd/issues/29938#issuecomment-1869508708

src/sleep/sleep.c

index 3784796487a42bb2eddf851688b7bc6ab52b674d..deb165ead89b0994541f98aad49afcb909c70f44 100644 (file)
@@ -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");