machine-dbus: do not check for overlapping condition

Follow-up for c5e48e3a66

This also makes things in line with the varlink method.
This commit is contained in:
Mike Yuan
2026-03-04 14:32:46 +01:00
parent f1f38e2fc1
commit e8c542981b
+1 -1
View 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,