Skip Menu |

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

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

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

Bug Information
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.