summaryrefslogtreecommitdiff
path: root/src/udev/udevadm-control.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-11-08 05:31:55 +0100
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-17 00:52:26 -0500
commit26b48b3d0d3987c565cdb4209a2606f7c4ad84f0 (patch)
tree6f359c8b432b77a240b370cf01f0efc5967de1a7 /src/udev/udevadm-control.c
parent49e5f27c53a1a1716a8e660fb27cfbfe8ea67de5 (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 'src/udev/udevadm-control.c')
0 files changed, 0 insertions, 0 deletions