Skip Menu |

This queue is for tickets about the Net-SSH2 CPAN distribution.

Report information
The Basics
Id: 61836
Status: resolved
Priority: 0/
Queue: Net-SSH2

People
Owner: Nobody in particular
Requestors: paul-bitcard [...] kittyheads.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.33
Fixed in: (no value)



Subject: trace option to new doesn't work properly
The new() sub in SSH2.pm looks like this: sub new { my $class = shift; my %opts = @_; $class->_new($opts{trace} ? 1 : 0); } It should be this in order to pass the _value_ of $opts{trace} onto the _new function found in SSH2.xs sub new { my $class = shift; my %opts = @_; $class->_new($opts{trace} ? $opts{trace} : 0); } The trace() method in SSH2.xs works just fine. It would also be great if the LIBSSH2_TRACE_* constants from libssh2.h were available to import from Net::SSH2.
Fixed in 0.34, trace constant group also added.