summaryrefslogtreecommitdiffstats
path: root/src/binfmt
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-10 13:58:32 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-10 15:47:26 +0100
commit52707598d5c0dbbc8a967e4874b0b08ee2486772 (patch)
tree842b356c019b0f7a46133e0cf562e30b8bb453b2 /src/binfmt
parenttest: refactor test-procfs-util for clarity and skip test on perm failure (diff)
downloadsystemd-52707598d5c0dbbc8a967e4874b0b08ee2486772.tar.xz
systemd-52707598d5c0dbbc8a967e4874b0b08ee2486772.zip
binfmt: fix exit value
Positive values are mapped to 0 by DEFINE_MAIN_FUNCTION(), so e.g. systemd-binfmt --foobar would "succeed".
Diffstat (limited to 'src/binfmt')
-rw-r--r--src/binfmt/binfmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binfmt/binfmt.c b/src/binfmt/binfmt.c
index c6b8dee446..0c65957ae4 100644
--- a/src/binfmt/binfmt.c
+++ b/src/binfmt/binfmt.c
@@ -189,7 +189,7 @@ static int run(int argc, char *argv[]) {
r = parse_argv(argc, argv);
if (r <= 0)
- return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
+ return r;
log_setup();