From b557a36890bb7501275297095dd211d83b6c18bc Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Mon, 27 Jul 2009 14:21:17 +0200 Subject: [PATCH] Allow leading dots in VMX config entry names * src/conf.c: the virConfParser must accept leading dot when in VMX mode --- src/conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index c51531e51c..2aa4a55f8c 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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); } -- GitLab