1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

Allow leading dots in VMX config entry names

* src/conf.c: the virConfParser must accept leading dot when in VMX mode
This commit is contained in:
Matthias Bolte 2009-07-27 14:21:17 +02:00 committed by Daniel Veillard
parent e4e50f52e8
commit b557a36890

View File

@ -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);
}