Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
17370
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
pier_hegeman [...] yahoo.co.jp
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
0.05
Fixed in:
(no value)



Subject: scp_put uses wrong stat value in sysread
scp_put uses $stat[2] as the number of bytes to read into the buffer in the sysread from $file (line 342). It should use $stat[7]. This causes any file larger than the mask value to fail. The attached diff fixes it.
Subject: SSH2.pm.patch
342c342 < my $count = $file->sysread($buf, $stat[2]); --- > my $count = $file->sysread($buf, $stat[7]);
On Mon Jan 30 15:58:45 2006, HEGEMANP wrote:
Show quoted text
> scp_put uses $stat[2] as the number of bytes to read into the buffer in > the sysread from $file (line 342). It should use $stat[7]. This causes > any file larger than the mask value to fail. The attached diff fixes it.
Oops. Thanks very much, fixed for 0.07.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.