]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libvirt_lxc: Claim success for --help
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 27 Aug 2015 00:21:54 +0000 (02:21 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 27 Aug 2015 13:05:51 +0000 (15:05 +0200)
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 <mprivozn@redhat.com>
src/lxc/lxc_controller.c

index a94e819e873b09f3dc3bcea98d110810da94ec6a..d36bc9b957adc33a99df4a4a144f3ab4c897a9dc 100644 (file)
@@ -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;
         }
     }