diff options
author | Marian Neagul <marian@info.uvt.ro> | 2013-10-22 16:03:39 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2013-10-23 09:03:09 +0100 |
commit | ecd83ce41408895ad544f23a904f110d75790422 (patch) | |
tree | c1ce8f081cd9a78fef17c84b87f675d402110cfc | |
parent | 5b2cf134fa292637b53bf89c28f2e88e8ecfdf16 (diff) | |
download | libvirt-python-v6-1.1.3.1.tar.gz libvirt-python-v6-1.1.3.1.tar.xz libvirt-python-v6-1.1.3.1.zip |
python: Fix Create*WithFiles filefd passingv1.1.3.1
Commit d76227be added functions virDomainCreateWithFiles and
virDomainCreateXMLWithFiles, but there was a little piece missing in
python bindings. This patch fixes proper passing of file descriptors
in the overwrites of these functions.
-rw-r--r-- | libvirt-override.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libvirt-override.c b/libvirt-override.c index e659bae..6ae44af 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -7157,6 +7157,8 @@ libvirt_virDomainCreateWithFiles(PyObject *self ATTRIBUTE_UNUSED, PyObject *args if (libvirt_intUnwrap(pyfd, &fd) < 0) goto cleanup; + + files[i] = fd; } LIBVIRT_BEGIN_ALLOW_THREADS; @@ -7201,6 +7203,8 @@ libvirt_virDomainCreateXMLWithFiles(PyObject *self ATTRIBUTE_UNUSED, PyObject *a if (libvirt_intUnwrap(pyfd, &fd) < 0) goto cleanup; + + files[i] = fd; } LIBVIRT_BEGIN_ALLOW_THREADS; |