From: Marian Neagul Date: Tue, 22 Oct 2013 15:03:39 +0000 (+0100) Subject: python: Fix Create*WithFiles filefd passing X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=713a4f4ba5c4addec09e81aeadb4fe42991cf9ce;p=thirdparty%2Flibvirt.git python: Fix Create*WithFiles filefd passing 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. --- diff --git a/python/libvirt-override.c b/python/libvirt-override.c index d16b9a2f96..273ea3880f 100644 --- a/python/libvirt-override.c +++ b/python/libvirt-override.c @@ -7105,6 +7105,8 @@ libvirt_virDomainCreateWithFiles(PyObject *self ATTRIBUTE_UNUSED, PyObject *args if (libvirt_intUnwrap(pyfd, &fd) < 0) goto cleanup; + + files[i] = fd; } LIBVIRT_BEGIN_ALLOW_THREADS; @@ -7149,6 +7151,8 @@ libvirt_virDomainCreateXMLWithFiles(PyObject *self ATTRIBUTE_UNUSED, PyObject *a if (libvirt_intUnwrap(pyfd, &fd) < 0) goto cleanup; + + files[i] = fd; } LIBVIRT_BEGIN_ALLOW_THREADS;