From e8c542981bdd3df29aa65573e75057fd3a537109 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Wed, 4 Mar 2026 14:31:54 +0100 Subject: [PATCH] machine-dbus: do not check for overlapping condition Follow-up for c5e48e3a66b23313cd4931b9dc25a8f48cfb1035 This also makes things in line with the varlink method. --- src/machine/machine-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c index b09a2facb0b..d567cd6d503 100644 --- a/src/machine/machine-dbus.c +++ b/src/machine/machine-dbus.c @@ -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, -- 2.47.3