From: Matthias Bolte Date: Mon, 27 Jul 2009 12:21:17 +0000 (+0200) Subject: Allow leading dots in VMX config entry names X-Git-Tag: v0.7.0~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b557a36890bb7501275297095dd211d83b6c18bc;p=thirdparty%2Flibvirt.git Allow leading dots in VMX config entry names * src/conf.c: the virConfParser must accept leading dot when in VMX mode --- 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); }