From: Lennart Poettering Date: Fri, 19 Jan 2024 22:41:24 +0000 (+0100) Subject: run: the --background= switch expects an argument X-Git-Tag: v256-rc1~1091 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87da1af78f7e960b7a5fb614fc14e20c11c97356;p=thirdparty%2Fsystemd.git 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. --- 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 }, {}, };