summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-03-09 17:41:25 +0100
committerLennart Poettering <lennart@poettering.net>2023-03-10 09:47:58 +0100
commit40d73340faabb6073602ba3ff41896f3478a2cbf (patch)
treebee3bf080c849adca0827b79d3f16dd7914782d5 /src/core/main.c
parent4870133bfaaf97189a970a29bf47e0e38fa721aa (diff)
downloadsystemd-40d73340faabb6073602ba3ff41896f3478a2cbf.tar.gz
runtime-scope: add helper that turns RuntimeScope enum into --system/--user string
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 29302a6de9..3f63150f31 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1867,7 +1867,7 @@ static int do_reexecute(
if (switch_root_dir)
args[i++] = "--switched-root";
- args[i++] = arg_runtime_scope == RUNTIME_SCOPE_SYSTEM ? "--system" : "--user";
+ args[i++] = runtime_scope_cmdline_option_to_string(arg_runtime_scope);
args[i++] = "--deserialize";
args[i++] = sfd;
args[i++] = NULL;