drop 0006-wrong-open-failure-detection.patch
applied upstream
Guido Guenther
15 years ago
0 | From 2613f1749a805a4e79905c3cea639a5fc671b51d Mon Sep 17 00:00:00 2001 | |
1 | From: Daniel Veillard <veillard@redhat.com> | |
2 | Date: Fri, 25 Jul 2008 08:42:05 +0000 | |
3 | Subject: [PATCH] wrong open() failure detection | |
4 | ||
5 | Guido Trotter pointed out a wrong open() failure detection | |
6 | --- | |
7 | src/qemu_driver.c | 2 +- | |
8 | 1 files changed, 1 insertions(+), 1 deletions(-) | |
9 | ||
10 | diff --git a/src/qemu_driver.c b/src/qemu_driver.c | |
11 | index aeff782..694e26f 100644 | |
12 | --- a/src/qemu_driver.c | |
13 | +++ b/src/qemu_driver.c | |
14 | @@ -479,7 +479,7 @@ static int qemudOpenMonitor(virConnectPtr conn, | |
15 | char buf[1024]; | |
16 | int ret = -1; | |
17 | ||
18 | - if (!(monfd = open(monitor, O_RDWR))) { | |
19 | + if ((monfd = open(monitor, O_RDWR)) < 0) { | |
20 | qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR, | |
21 | _("Unable to open monitor path %s"), monitor); | |
22 | return -1; | |
23 | -- | |
24 | 1.5.6.3 | |
25 |