- Fix file descriptor passing in python bindings
e350826c-python-fix-fd-passing.patch rhb#1021434 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=319
This commit is contained in:
parent
65c4cfdc02
commit
3973ce3dde
26
e350826c-python-fix-fd-passing.patch
Normal file
26
e350826c-python-fix-fd-passing.patch
Normal file
@ -0,0 +1,26 @@
|
||||
commit e350826c653b20dd271ab99075d2f224c7451356
|
||||
Author: Marian Neagul <marian@info.uvt.ro>
|
||||
Date: Tue Oct 22 16:03:39 2013 +0100
|
||||
|
||||
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.
|
||||
|
||||
Index: libvirt-1.1.2/python/libvirt-override.c
|
||||
===================================================================
|
||||
--- libvirt-1.1.2.orig/python/libvirt-override.c
|
||||
+++ libvirt-1.1.2/python/libvirt-override.c
|
||||
@@ -7149,6 +7149,10 @@ libvirt_virDomainCreateXMLWithFiles(PyOb
|
||||
|
||||
if (libvirt_intUnwrap(pyfd, &fd) < 0)
|
||||
goto cleanup;
|
||||
+
|
||||
+ files[i] = fd;
|
||||
+
|
||||
+ files[i] = fd;
|
||||
}
|
||||
|
||||
LIBVIRT_BEGIN_ALLOW_THREADS;
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 22 21:37:08 MDT 2013 - jfehlig@suse.com
|
||||
|
||||
- Fix file descriptor passing in python bindings
|
||||
e350826c-python-fix-fd-passing.patch
|
||||
rhb#1021434
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 22 14:37:08 MDT 2013 - cbosdonnat@suse.com
|
||||
|
||||
|
@ -420,6 +420,7 @@ Patch13: 3e2f27e1-CVE-2013-4400.patch
|
||||
Patch14: 5a0ea4b7-CVE-2013-4400.patch
|
||||
Patch15: 843bdb2f-CVE-2013-4400.patch
|
||||
Patch16: bd773e74-lxc-terminate-machine.patch
|
||||
Patch17: e350826c-python-fix-fd-passing.patch
|
||||
# Need to go upstream
|
||||
Patch100: xen-name-for-devid.patch
|
||||
Patch101: clone.patch
|
||||
@ -948,6 +949,7 @@ of recent versions of Linux (and other OSes).
|
||||
%patch14 -p1
|
||||
%patch15 -p1
|
||||
%patch16 -p1
|
||||
%patch17 -p1
|
||||
%patch100 -p1
|
||||
%patch101
|
||||
%patch102 -p1
|
||||
|
Loading…
Reference in New Issue
Block a user