summaryrefslogtreecommitdiffstats
path: root/src/run
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-01-19 23:41:24 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-01-20 02:10:46 +0100
commit87da1af78f7e960b7a5fb614fc14e20c11c97356 (patch)
tree7230c9c137d13be43e609909ea0f6dc5922fa1bf /src/run
parentMerge pull request #31016 from poettering/pid1-priority-rework (diff)
downloadsystemd-87da1af78f7e960b7a5fb614fc14e20c11c97356.tar.xz
systemd-87da1af78f7e960b7a5fb614fc14e20c11c97356.zip
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.
Diffstat (limited to 'src/run')
-rw-r--r--src/run/run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/run/run.c b/src/run/run.c
index 74e39a2ac1..c3313c6c52 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 },
{},
};