1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

machinectl: fix message

bus_wait_for_jobs_new() can fail for various reasons.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-06-19 13:35:22 +02:00
parent 12cc960163
commit b2544bb6e8

View File

@ -1705,7 +1705,7 @@ static int start_machine(int argc, char *argv[], void *userdata) {
r = bus_wait_for_jobs_new(bus, &w);
if (r < 0)
return log_oom();
return log_error_errno(r, "Could not watch jobs: %m");
for (int i = 1; i < argc; i++) {
_cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;