machine: fix typo in polkit policy name

Fixes a bug reported in #43975, where CreateMachineEx checks a nonexistent action org.freedesktop.machine1.create-machines.

(cherry picked from commit 1e5d6faf90)
(cherry picked from commit 147098746a)
This commit is contained in:
Xinyu Yu authored and Luca Boccassi committed 2026-11-05 14:48:10 +00:00
1 parent 59b3a935a4
commit 06aed71adf
1 file changed
+1 -1
+1 -1
View File
@@ -683,7 +683,7 @@ static int method_create_machine(sd_bus_message *message, void *userdata, sd_bus
assert(message);
if (sd_bus_message_is_method_call(message, NULL, "CreateMachineEx"))
r = method_create_or_register_machine_ex(manager, message, "org.freedesktop.machine1.create-machines", &m, error);
r = method_create_or_register_machine_ex(manager, message, "org.freedesktop.machine1.create-machine", &m, error);
else
r = method_create_or_register_machine(manager, message, "org.freedesktop.machine1.create-machine", &m, error);
if (r < 0)