Bug 862178 - ruby-libvirt: ext/libvirt/stream.c registers Stream::recv with wrong parameter count
ruby-libvirt: ext/libvirt/stream.c registers Stream::recv with wrong paramete...
Status: NEW
Product: Virtualization Tools
Classification: Community
Component: ruby-libvirt (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Libvirt Maintainers
Depends On:
  Show dependency treegraph
Reported: 2012-10-02 03:54 EDT by Philipp Wollermann
Modified: 2015-03-17 12:28 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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

  None (edit)
Description Philipp Wollermann 2012-10-02 03:54:42 EDT
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):

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.