提交 3db8607f 编写于 作者: J Jim Meyering 提交者: Eric Blake

libvirtd: diagnose invalid host UUID

* daemon/libvirtd.c (remoteReadConfigFile): Diagnose an invalid
host UUID rather than silently exiting with status 7.
上级 a8f75d2c
...@@ -2843,8 +2843,10 @@ remoteReadConfigFile (struct qemud_server *server, const char *filename) ...@@ -2843,8 +2843,10 @@ remoteReadConfigFile (struct qemud_server *server, const char *filename)
GET_CONF_INT (conf, filename, max_client_requests); GET_CONF_INT (conf, filename, max_client_requests);
GET_CONF_STR (conf, filename, host_uuid); GET_CONF_STR (conf, filename, host_uuid);
if (virSetHostUUIDStr(host_uuid)) if (virSetHostUUIDStr(host_uuid)) {
VIR_ERROR(_("invalid host UUID: %s"), host_uuid);
goto free_and_fail; goto free_and_fail;
}
VIR_FREE(host_uuid); VIR_FREE(host_uuid);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册