提交 22221233 编写于 作者: C Cédric Bosdonnat

virt-aa-helper wasn't running virErrorInitialize

This turns out to be working by magic but needs to be fixed.
上级 742d49fa
...@@ -1251,6 +1251,12 @@ main(int argc, char **argv) ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册