From 87da1af78f7e960b7a5fb614fc14e20c11c97356 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 19 Jan 2024 23:41:24 +0100 Subject: [PATCH] run: the --background= switch expects an argument We got this right when running as "uid0", but wrong when invoked under "systemd-run". Let's fix that. --- src/run/run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run/run.c b/src/run/run.c index 74e39a2ac1d..c3313c6c529 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -297,7 +297,7 @@ static int parse_argv(int argc, char *argv[]) { { "same-dir", no_argument, NULL, 'd' }, { "shell", no_argument, NULL, 'S' }, { "ignore-failure", no_argument, NULL, ARG_IGNORE_FAILURE }, - { "background", no_argument, NULL, ARG_BACKGROUND }, + { "background", required_argument, NULL, ARG_BACKGROUND }, {}, }; -- 2.47.3