mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Fix EOF handling when reading openvz domain list
This commit is contained in:
parent
d81b038cc2
commit
2875ed81bd
@ -1,3 +1,8 @@
|
|||||||
|
Wed Aug 27 12:20:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/openvz_conf.c: Fix handling of EOF when reading list
|
||||||
|
of domains
|
||||||
|
|
||||||
Wed Aug 27 12:14:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
Wed Aug 27 12:14:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/openvz_driver.c: Remove incorrect usage of virState
|
* src/openvz_driver.c: Remove incorrect usage of virState
|
||||||
|
@ -533,6 +533,9 @@ openvzGetVPSInfo(virConnectPtr conn) {
|
|||||||
vm = *pnext;
|
vm = *pnext;
|
||||||
|
|
||||||
if (fscanf(fp, "%d %s\n", &veid, status) != 2) {
|
if (fscanf(fp, "%d %s\n", &veid, status) != 2) {
|
||||||
|
if (feof(fp))
|
||||||
|
break;
|
||||||
|
|
||||||
openvzError(conn, VIR_ERR_INTERNAL_ERROR,
|
openvzError(conn, VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Failed to parse vzlist output"));
|
_("Failed to parse vzlist output"));
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
Reference in New Issue
Block a user