mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
wrong open() failure detection
* src/qemu_driver.c: Guido Trotter pointed out a wrong open() failure detection Daniel
This commit is contained in:
parent
388502750e
commit
6fae611381
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jul 25 10:39:54 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/qemu_driver.c: Guido Trotter pointed out a wrong open() failure
|
||||||
|
detection
|
||||||
|
|
||||||
Fri Jul 25 08:36:18 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
Fri Jul 25 08:36:18 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* docs/libvirt.rng: patch from John Levon fixing various patterns
|
* docs/libvirt.rng: patch from John Levon fixing various patterns
|
||||||
|
@ -504,7 +504,7 @@ static int qemudOpenMonitor(virConnectPtr conn,
|
|||||||
char buf[1024];
|
char buf[1024];
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
if (!(monfd = open(monitor, O_RDWR))) {
|
if ((monfd = open(monitor, O_RDWR)) < 0) {
|
||||||
qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
|
qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unable to open monitor path %s"), monitor);
|
_("Unable to open monitor path %s"), monitor);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user