Skip to content

Commit f227310

Browse files
bnfpoettering
authored andcommitted
machined: use x-machine-unix prefix for the container bus on dbus1
This fixes "machinectl login" on systems configured with --disable-kdbus. The error was: machinectl login foo Failed to get machine PTY: Input/output error
1 parent c43b213 commit f227310

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/machine/machine-dbus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ int bus_machine_method_open_login(sd_bus *bus, sd_bus_message *message, void *us
511511
#ifdef ENABLE_KDBUS
512512
asprintf(&container_bus->address, "x-machine-kernel:pid=" PID_FMT ";x-machine-unix:pid=" PID_FMT, m->leader, m->leader);
513513
#else
514-
asprintf(&container_bus->address, "x-machine-kernel:pid=" PID_FMT, m->leader);
514+
asprintf(&container_bus->address, "x-machine-unix:pid=" PID_FMT, m->leader);
515515
#endif
516516
if (!container_bus->address)
517517
return log_oom();

0 commit comments

Comments
 (0)