Bug 862178 - ruby-libvirt: ext/libvirt/stream.c registers Stream::recv with wrong parameter count
Summary: ruby-libvirt: ext/libvirt/stream.c registers Stream::recv with wrong paramete...
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: ruby-libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-02 07:54 UTC by Philipp Wollermann
Modified: 2018-07-18 14:16 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)
My patch for the bug. (605 bytes, application/octet-stream)
2012-10-02 07:54 UTC, Philipp Wollermann
no flags Details

Description Philipp Wollermann 2012-10-02 07:54:42 UTC
Created attachment 620170 [details]
My patch for the bug.

Description of problem:

The code in libvirt/stream.c registers the function Stream::recv as having two parameters while in reality it has just one. Thus, when you call it, you must supply a bogus second parameter:

stream = conn.stream
vol.download stream, 0, 0, 0
data = stream.recv(1024, 0)

while it should be just

data = stream.recv(1024)

Version-Release number of selected component (if applicable):

ruby-libvirt
commit a8d79e06419efadc86fc16e74b50bfc406f9746d
Date:   Thu Oct 13 16:23:28 2011 -0400


Note You need to log in before you can comment on or make changes to this bug.