diff options
author | Marian Neagul <marian@info.uvt.ro> | 2013-10-22 16:03:39 +0100 |
---|---|---|
committer | Martin Kletzander <mkletzan@redhat.com> | 2013-10-22 23:01:18 +0100 |
commit | 1da4ac52f55326fddb6bc03606c2384aaa930033 (patch) | |
tree | 6fb61042e7dbe64031d0b9be8eabab4768105154 | |
parent | 15c6588cf5a54b513b254a6e445b3a3e02ad17dd (diff) | |
download | libvirt-python-v6-1da4ac52f55326fddb6bc03606c2384aaa930033.tar.gz libvirt-python-v6-1da4ac52f55326fddb6bc03606c2384aaa930033.tar.xz libvirt-python-v6-1da4ac52f55326fddb6bc03606c2384aaa930033.zip |
python: Fix Create*WithFiles filefd passingv1.1.4-rc2v1.1.4-rc1v1.1.4
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 4800d1d..2e58bf9 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; |