33 lines
964 B
Diff
33 lines
964 B
Diff
From 2f6e857ac7d6ed5cd417e684147dd9c98775ab3d Mon Sep 17 00:00:00 2001
|
|
From: Chris Lalancette <clalance@redhat.com>
|
|
Date: Mon, 21 Sep 2009 14:53:31 +0200
|
|
Subject: [PATCH] Don't do virSetConnError when virDrvSupportsFeature is successful.
|
|
|
|
Signed-off-by: Chris Lalancette <clalance@redhat.com>
|
|
Fedora-patch: libvirt-fix-drv-supports-feature-bogus-error.patch
|
|
---
|
|
src/libvirt.c | 7 +++++--
|
|
1 files changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/libvirt.c b/src/libvirt.c
|
|
index 4a11688..fa59dc7 100644
|
|
--- a/src/libvirt.c
|
|
+++ b/src/libvirt.c
|
|
@@ -1349,8 +1349,11 @@ virDrvSupportsFeature (virConnectPtr conn, int feature)
|
|
}
|
|
|
|
ret = VIR_DRV_SUPPORTS_FEATURE (conn->driver, conn, feature);
|
|
- /* Copy to connection error object for back compatability */
|
|
- virSetConnError(conn);
|
|
+
|
|
+ if (ret < 0)
|
|
+ /* Copy to connection error object for back compatability */
|
|
+ virSetConnError(conn);
|
|
+
|
|
return ret;
|
|
}
|
|
|
|
--
|
|
1.6.2.5
|
|
|