mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
Use full path when loading XML files
This commit is contained in:
parent
381fa1fc46
commit
a1b49bcdea
14
ChangeLog
14
ChangeLog
@ -1,3 +1,17 @@
|
|||||||
|
Fri Jul 11 18:58:59 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/network_conf.c, src/domain_conf.c: Use full path when
|
||||||
|
opening XML files
|
||||||
|
|
||||||
|
Fri Jul 11 18:34:59 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/qemu_conf.c, src/qemu_conf.h, src/qemu_driver.c: Switch
|
||||||
|
over to generic domain APIs
|
||||||
|
* tests/qemuxml2argvtest.c, tests/qemuxml2xmltest.c: Update
|
||||||
|
to new APIs
|
||||||
|
* tests/qemuxml2argvdata/: Update data files to match new
|
||||||
|
XML generation format
|
||||||
|
|
||||||
Fri Jul 11 18:32:59 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
Fri Jul 11 18:32:59 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/bridge.c, src/bridge.h, src/qemu_conf.c, src/qemu_conf.h,
|
* src/bridge.c, src/bridge.h, src/qemu_conf.c, src/qemu_conf.h,
|
||||||
|
@ -2800,7 +2800,7 @@ virDomainObjPtr virDomainLoadConfig(virConnectPtr conn,
|
|||||||
if ((autostart = virFileLinkPointsTo(autostartLink, configFile)) < 0)
|
if ((autostart = virFileLinkPointsTo(autostartLink, configFile)) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (!(def = virDomainDefParseFile(conn, caps, file)))
|
if (!(def = virDomainDefParseFile(conn, caps, configFile)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (!virFileMatchesNameSuffix(file, def->name, ".xml")) {
|
if (!virFileMatchesNameSuffix(file, def->name, ".xml")) {
|
||||||
|
@ -606,7 +606,7 @@ virNetworkObjPtr virNetworkLoadConfig(virConnectPtr conn,
|
|||||||
if ((autostart = virFileLinkPointsTo(autostartLink, configFile)) < 0)
|
if ((autostart = virFileLinkPointsTo(autostartLink, configFile)) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (!(def = virNetworkDefParseFile(conn, file)))
|
if (!(def = virNetworkDefParseFile(conn, configFile)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (!virFileMatchesNameSuffix(file, def->name, ".xml")) {
|
if (!virFileMatchesNameSuffix(file, def->name, ".xml")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user