From 4870133bfaaf97189a970a29bf47e0e38fa721aa Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 10 Mar 2023 09:47:10 +0100 Subject: basic: add RuntimeScope enum In various tools and services we have a per-system and per-user concept. So far we sometimes used a boolean indicating whether we are in system mode, or a reversed boolean indicating whether we are in user mode, or the LookupScope enum used by the lookup path logic. Let's address that, in introduce a common enum for this, we can use all across the board. This is mostly just search/replace, no actual code changes. --- src/home/homectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/home') diff --git a/src/home/homectl.c b/src/home/homectl.c index 531b685e22..158164ae81 100644 --- a/src/home/homectl.c +++ b/src/home/homectl.c @@ -113,7 +113,7 @@ static int acquire_bus(sd_bus **bus) { if (*bus) return 0; - r = bus_connect_transport(arg_transport, arg_host, false, bus); + r = bus_connect_transport(arg_transport, arg_host, RUNTIME_SCOPE_SYSTEM, bus); if (r < 0) return bus_log_connect_error(r, arg_transport); -- cgit v1.2.1