mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Fix exit status of lxc controller
The LXC controller main() method initialized 'rc' to 1 rather than '-1'. In the cleanup path it will print any error to stderr, if-and-only-if rc < 0. Hence the incorrect initialization caused errors to be lost. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
5787f0b95e
commit
13c011c337
@ -2230,7 +2230,7 @@ cleanup:
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
pid_t pid;
|
||||
int rc = 1;
|
||||
int rc = -1;
|
||||
char *name = NULL;
|
||||
size_t nveths = 0;
|
||||
char **veths = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user