|Subject:||scp_put uses wrong stat value in sysread|
scp_put uses $stat as the number of bytes to read into the buffer in the sysread from $file (line 342). It should use $stat. This causes any file larger than the mask value to fail. The attached diff fixes it.
342c342 < my $count = $file->sysread($buf, $stat); --- > my $count = $file->sysread($buf, $stat);