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]);