mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virt-aa-helper wasn't running virErrorInitialize
This turns out to be working by magic but needs to be fixed.
This commit is contained in:
parent
742d49fa17
commit
22221233d0
@ -1251,6 +1251,12 @@ main(int argc, char **argv)
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (virThreadInitialize() < 0 ||
|
||||||
|
virErrorInitialize() < 0) {
|
||||||
|
fprintf(stderr, _("%s: initialization failed\n"), argv[0]);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
/* clear the environment */
|
/* clear the environment */
|
||||||
environ = NULL;
|
environ = NULL;
|
||||||
if (setenv("PATH", "/sbin:/usr/sbin", 1) != 0)
|
if (setenv("PATH", "/sbin:/usr/sbin", 1) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user