summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-11-08 05:31:55 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-11-07 23:31:55 -0500
commitcfed63f60dd7412c199652825ed172c319b02b3c (patch)
tree56aad07815a0b2a017ea027e753e98ce0dff9483 /configure.ac
parent453a9c7834a89e5c93f317165302b3c26261fd9e (diff)
nspawn: fix exit code for --help and --version (#4609)
Commit b006762 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.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions