mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 07:36:19 +00:00
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 <mprivozn@redhat.com>
(cherry picked from commit fb0ef0d511
)
This commit is contained in:
parent
acf257deb5
commit
54032910dc
@ -2571,6 +2571,7 @@ int main(int argc, char *argv[])
|
|||||||
fprintf(stderr, " -S NAME, --security NAME\n");
|
fprintf(stderr, " -S NAME, --security NAME\n");
|
||||||
fprintf(stderr, " -h, --help\n");
|
fprintf(stderr, " -h, --help\n");
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
|
rc = 0;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user