Re: [Ssh-sftp-perl-users] Net SSH2 scp_get/scp_put problems.
Brought to you by:
dbrobins
From: Rob V. <rob...@br...> - 2006-03-15 12:01:05
|
Hi all, I've noticed the bug for files bigger than 25k and that these still are present in the 0.07 version. I've made two patch files for these according to the fixes mentioned by Rutger Ovidius. These are almost identical to the ones from Rutger minus a couple lines that were already applied to the code. see the attachment. Regards Rob p.s. I've also build rpms for Net::SSH2 and libSSH2 which I tested on Suse 10.0 and Suse 9.1, if anybody is interested drop me an email. Op do, 16-02-2006 te 20:32 -0800, schreef David Robins: > On Thursday February 16, 2006 11:27, Rutger Ovidius wrote: > > Saturday, February 11, 2006, 8:18:21 AM, you wrote: > > > > RO> But scp_get does not work on files > 25k or so. For a 2k file, it works, but > > RO> larger files receive a segmentation fault. > > > > RO> scp_put just creates a 0 byte file on the remote system but doesn't transfer the contents. > > > > I found the scp_get problem; the pv_buffer was being incremented and > > then accessed at an incorrect position. (Requires a recompile of SSH2.xs). > > Fixed for 0.07, thanks. > > > The scp_put problem was patched by by R. Corbridge. stat[2] was being > > used rather than stat[7] in SSH2.pm. > > I already picked that up, it will also be in 0.07. > > Thanks, > |