Skip to content
Commit 045473ce authored by Martin Pitt's avatar Martin Pitt Committed by Zbigniew Jędrzejewski-Szmek
Browse files

nspawn: fix exit code for --help and --version (#4609)

Commit b0067625 inverted the initial exit code which is relevant for --help and
--version without a particular reason.  For these special options, parse_argv()
returns 0 so that our main() immediately skips to the end without adjusting
"ret". Otherwise, if an actual container is being started, ret is set on error
in run(), which still provides the "non-zero exit on error" behaviour.

Fixes #4605.
(cherry picked from commit cfed63f6)
parent a9facbdf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment