From fb0ef0d5110dd737bde2b79e17c12b71a69f5d06 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 27 Aug 2015 02:21:54 +0200 Subject: [PATCH] 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 --- src/lxc/lxc_controller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index a94e819e87..d36bc9b957 100644 --- a/src/lxc/lxc_controller.c +++ b/src/lxc/lxc_controller.c @@ -2613,6 +2613,7 @@ int main(int argc, char *argv[]) fprintf(stderr, " -U FD, --share-uts FD\n"); fprintf(stderr, " -h, --help\n"); fprintf(stderr, "\n"); + rc = 0; goto cleanup; } }