提交 0ec5cd07 编写于 作者: D Daniel Veillard

Fix daemon hook script initialization

* daemon/libvirtd.c: we should error out only if virHookInitialize()
  return value is negative
上级 8bf6799b
......@@ -3150,7 +3150,7 @@ int main(int argc, char **argv) {
}
/* setup the hooks if any */
if (virHookInitialize()) {
if (virHookInitialize() < 0) {
ret = VIR_DAEMON_ERR_HOOKS;
goto error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册