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:
parent
e4e50f52e8
commit
b557a36890
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user