]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine-dbus: do not check for overlapping condition 40947/head
authorMike Yuan <me@yhndnzj.com>
Wed, 4 Mar 2026 13:31:54 +0000 (14:31 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 4 Mar 2026 13:32:46 +0000 (14:32 +0100)
Follow-up for c5e48e3a66b23313cd4931b9dc25a8f48cfb1035

This also makes things in line with the varlink method.

src/machine/machine-dbus.c

index b09a2facb0bfab73e3a0bbe28f39a4a61083e0cb..d567cd6d503f75ec108deb1952982182a7ebffca 100644 (file)
@@ -380,7 +380,7 @@ int bus_machine_method_open_shell(sd_bus_message *message, void *userdata, sd_bu
                                         r,
                                         "Failed to check if machine '%s' is running in the root user namespace: %m",
                                         m->name);
-                if (r != 0)
+                if (r > 0)
                         return sd_bus_error_set(
                                         error,
                                         SD_BUS_ERROR_ACCESS_DENIED,