Message ID | 1b928bcbdc77c52338ae49763098bb9c79746a6c.1461697488.git.crobinso@redhat.com |
---|---|
State | Accepted |
Commit | 20b52668dd1300184280a1c8205370b12f0c3c63 |
Headers | show |
diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index daf8f99..6fa9695 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -853,6 +853,12 @@ virStoragePoolDefParseXML(xmlXPathContextPtr ctxt) goto error; } + if (strchr(ret->name, '/')) { + virReportError(VIR_ERR_XML_ERROR, + _("name %s cannot contain '/'"), ret->name); + goto error; + } + uuid = virXPathString("string(./uuid)", ctxt); if (uuid == NULL) { if (virUUIDGenerate(ret->uuid) < 0) {