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.
This commit is contained in:
Lennart Poettering 2024-01-19 23:41:24 +01:00 committed by Luca Boccassi
parent 3cdfd6acf1
commit 87da1af78f

View file

@ -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 },
{},
};