From: Michal Privoznik Date: Thu, 27 Aug 2015 00:21:54 +0000 (+0200) Subject: libvirt_lxc: Claim success for --help X-Git-Tag: v1.2.18.1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54032910dc76c4d703e34dd6845c479390b86b95;p=thirdparty%2Flibvirt.git libvirt_lxc: Claim success for --help So far, if libvirt_lxc binary (usually to be found under /usr/libexec/) is run with --help, due to a missing line and our usual functions pattern, an 'uknown' error is returned. Yeah, the help is printed out, but we should not claim error. Signed-off-by: Michal Privoznik (cherry picked from commit fb0ef0d5110dd737bde2b79e17c12b71a69f5d06) --- diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index 110a55662b..9549f36189 100644 --- a/src/lxc/lxc_controller.c +++ b/src/lxc/lxc_controller.c @@ -2571,6 +2571,7 @@ int main(int argc, char *argv[]) fprintf(stderr, " -S NAME, --security NAME\n"); fprintf(stderr, " -h, --help\n"); fprintf(stderr, "\n"); + rc = 0; goto cleanup; } }