Blame SOURCES/libvirt-python-flags-cannot-get-right-value-for-blockCopy-function.patch

b79911
From 541abb79fe046a69c7a9970259363ea7fabaa916 Mon Sep 17 00:00:00 2001
b79911
Message-Id: <541abb79fe046a69c7a9970259363ea7fabaa916@dist-git>
b79911
From: Pavel Hrdina <phrdina@redhat.com>
b79911
Date: Wed, 22 Oct 2014 11:48:58 +0200
b79911
Subject: [PATCH] flags cannot get right value for blockCopy function
b79911
b79911
When use blockCopy, flags cannot get a right value, because
b79911
PyArg_ParseTuple want to get 6 parameters and blockCopy only
b79911
pass 5. Flags will get a unpredictable value, this will make
b79911
the function fail with error:
b79911
b79911
unsupported flags (0x7f6c) in function qemuDomainBlockCopy
b79911
b79911
Signed-off-by: Luyao Huang <lhuang@redhat.com>
b79911
(cherry picked from commit a7303a56b5e55c29cb5336c84a89b8347a355770)
b79911
b79911
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1155484
b79911
b79911
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
b79911
b79911
Conflicts:
b79911
	libvirt-override.c: commit 7aaa02b4 updated formatting string so
b79911
            follow the new format in this backport
b79911
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
b79911
---
b79911
 libvirt-override.c | 5 ++---
b79911
 1 file changed, 2 insertions(+), 3 deletions(-)
b79911
b79911
diff --git a/libvirt-override.c b/libvirt-override.c
b79911
index e072602..1aa3bf2 100644
b79911
--- a/libvirt-override.c
b79911
+++ b/libvirt-override.c
b79911
@@ -8108,9 +8108,8 @@ libvirt_virDomainBlockCopy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
b79911
     unsigned int flags;
b79911
     int c_retval;
b79911
 
b79911
-    if (!PyArg_ParseTuple(args, (char *) "Ozz|Oi:virDomainBlockCopy",
b79911
-                          &pyobj_dom, &disk, &destxml, &pyobj_dict, ┬Âms,
b79911
-                          &flags))
b79911
+    if (!PyArg_ParseTuple(args, (char *) "Ozz|OI:virDomainBlockCopy",
b79911
+                          &pyobj_dom, &disk, &destxml, &pyobj_dict, &flags))
b79911
         return VIR_PY_INT_FAIL;
b79911
 
b79911
     if (PyDict_Check(pyobj_dict)) {
b79911
-- 
b79911
2.1.3
b79911