提交 b557a368 编写于 作者: M Matthias Bolte 提交者: Daniel Veillard

Allow leading dots in VMX config entry names

* src/conf.c: the virConfParser must accept leading dot when in VMX mode
上级 e4e50f52
......@@ -534,7 +534,8 @@ virConfParseName(virConfParserCtxtPtr ctxt)
SKIP_BLANKS;
base = ctxt->cur;
/* TODO: probably need encoding support and UTF-8 parsing ! */
if (!c_isalpha(CUR)) {
if (!c_isalpha(CUR) &&
!((ctxt->conf->flags & VIR_CONF_FLAG_VMX_FORMAT) && (CUR == '.'))) {
virConfError(ctxt, VIR_ERR_CONF_SYNTAX, _("expecting a name"));
return(NULL);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册